Initially, consequences were not that bad (take down of some illegal posts), then they went to removal of recurring offender profiles.X ignored those Supreme Court Justice orders - their only legal course of action being to comply and file an appeal to the Supreme Court as a whole. That led to further escalation against their legal representation in Brazil and their executives (which is according to Brazilian law), which led to Musk shutting down the local representation rather than following the local law. Which put X in a non-compliance state and led to the order for its blocking.
If you understand the initial order to take down posts of defamation and illegal speech as censorship, you comply and appeal. Ignoring a court order is not a legal option.