Sometimes there are legitimate reasons that overcome that. But not with a simple communication channel.
The citizens are the ones initiating contact with WhatsApp servers. They're the ones really being blocked here. Even though they've done nothing wrong.
> WhatsApp had way enough time to take the requests of the judge into account and act on them.
Sure they had time, but the request was physically impossible. What is supposed to happen if a judge demands a picture of you eating breakfast 8 days ago?
You go to court and explain it's impossible. Sticking your fingers in your ears and singing is a poor strategy and deserves to be punished.
That is literally the opposite of what Zuck, the founder and CEO of Facebook said in this article: "the idea that everyone in Brazil can be denied the freedom to communicate the way they want is very scary in a democracy"