That very same thing bothers me deeply. How do we prevent people from simply buying the result they want out of the judicial system?
Getting rid of judicial activism is a start, maybe term limits. The root cause of all this is the judicial branch. They lawyer from the bench.
That has been a perpetual problem. Watch the judgeship elections more carefully, check out how an incumbent judge has ruled in the past, watch who contributes to whom. I personally don't like the "non-partisan" type elections for certain positions, and would work on that, cause I think you get more honesty if you are up front about stuff like that.