There is a human loop above judges - and that's juries ( in cases serious enough to have them ).
They are also designed to try and avoid a particular establishment/class view by selecting them from the population.
If I jury doesn't want to convict, there is nothing the judge can do.