Answer :

It's not necessarily that judges keep the country "safe" from political majorities, but instead that they don't allow the rule of law to be overturned by large groups of people, no matter how "loud" their voices.