This is just how the US legal system works. When a judge has made a terrible decision for dumb reasons, you appeal it, you don’t sue the judge. There’d be a similar result if you sued a judge for ruling against you at the instructions of their cult leader or something.
This is a film, https://en.wikipedia.org/wiki/Mercy_(2026_film)