"Out of spite" is ridiculous indeed, but I sustain my guess that if a proper brazilian lawyer had addressed the case, no block would ever be ordered.
(I am having a No True Scotsman[1] kind of a reaction to this phrase, with a side serving of Kafka[2].)
Their lawyers answering the judge's court order are from this american firm: https://www.zwillgen.com/
That's not how the internet works.
That means that it is not universal or obvious that this kind of blocking would be practiced or accepted. (For example, if a Brazilian company ignored a subpoena from a U.S. court, there would not be a legal basis for the U.S. court to order ISPs to prevent Americans from accessing that company's services.)
Some portion of Brazilians think it is "obvious" that a government would never allow its citizens to access Internet services that allow or commit violations of local law, or are simply not subject to local jurisdiction at all. But it's not obvious at all.
blocking whatsapp because they are being uncooperative with Brazil's legal system is completely fair.
> They asked for access to data WhatsApp has no access to, and then blocked the service when they didn't get it.
Are they required to be able to provide such data when asked if they want to operate in brazil?
Did they respond to the request in a reasonable fashion?
No, WhatsApp is not subject to the judge's jurisdiction. They do not have to cooperate, respond in reasonable fashion or anything.
The power of law has limits.