That's literally what we want in a rule of law system -- people more beholden to the legal system than to common concerns of voters.
Put another way, the role of the legal system is to be a linter for the messy / incomplete / illegal reality of legislative and executive desires.