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.
Your story underscores my belief that government is past the point of reporting in the hope of repair or reform. When the system is broken beyond rescue, at what point is it right to revolt?
Cook County, mate. Kim Foxx marketed herself as a reformer but nothing is changing for people trapped in its judiciary system. And despite a few recent changes the party still controls its candidates well enough that it only needs to present two manageable options in the primary.