In the long history of humankind (and animal kind, too) those who learned to collaborate and improvise most effectively have prevailed.
I think that the legitimacy of the court would be undermined in any case if the court made a decision based on its perception of public opinion.