When you can't trust your highest court is impartial the whole system is untrustworthy. Unfortunately the US system is designed in such a way that the highest court can't be trusted (life terms, appointed by the sitting president).
Do you really think that judges that have to run for reelection every few years can be more trusted to rule on cases fairly, according to the law, rather than bending to popular whims?
The emphasis is on “more” trusted.
Supreme court justice positions should be limited to around thirteen (or some other prime number) years and should have mandatory cognitive capacity tests given yearly that are videotaped and broadcast live. The tests should be written by a nonpartisan panel of doctors chosen randomly from an applicant pool like a jury and refreshed every five years.