Yeah I think you’re mistaking what a Judges role is. It is merely to uphold the law. The problem in the US is that the role is so politicised that the idea they are legal experts rather than representatives of parties is being lost. They should be representative of society to an extent but ultimately the main qualification is legal experience.
The issue is the law itself and that comes back to the elected politicians in Alabama. It’s a problem of one party rule, and first past the post electoral system plus gerrymandering which means a stagnant political system dominated by one segment of society. The US increasingly looks like a it’s just a large collection of failed democracies.
You don’t specifically need representative judges. You need electoral reform so you have an actual representative democracy, and everything else comes from that.