this is exactly the roll our judicial branch should play and so rarely does.
Step by step in America, the judicial branch has become more and more deferential to the executive branch when it comes to law enforcement. The reality is that I (and you) should have zero expectation that they will protect you from bad state actors at this point.
It is something everyone involved with the judiciary should be embarrassed about.