A Brazilian court has fined Elon Musk's companies after social networking site X was temporarily made available again in the country earlier this week.