A Brazilian court has ordered the social media platform X to pay a fine of $2.2 million for failing to comply with judicial orders.