Almost all countries have similar systems for obtaining evidence. These people were criminals, they broke the law and the legal system worked as designed to bring them to "justice". Meta was just a pawn here with very little influence.
If this story was about a murder rather than an abortion people would think that Meta did the right thing to bring the murderer to justice. As I see it the problem is that people disagree with the law and are using Meta as a scapegoat. But you don't fix stupid laws by having corporations go vigilante. I'd rather not have billionaires coming up with their own set of laws, that is a recipe for disaster. I think we need to fix the laws, which will fix the root cause of this issue.
Also use E2EE for all private information, cryptography can't be compelled to reveal your private data by a court order.