What you are describing is corruption. It’s actually a crime. But government will never hold government prosecutors or judges to account for corruption that favors government interests.
For instance, the police committed about a dozen felonies in my case. In Illinois, in all counties except Cook County, the misconduct has to be reported to the police station where the officer works. THEY WILL JUST LAUGH AT YOU. They are not going to charge their own police officer with misconduct because a "criminal" reported it.
And if you are in jail and try to report anything you can only do it by postal mail. In which case all your letters just go into the circular filing cabinet under their desk.