Judges work based on the law. Morals and laws are different. Different people follow or believe different morals. Judges don't get the luxury to follow what they believe is morally right when there is a law covering it. In the US it's Congress who makes laws rather than judges.
Should job seekers be allowed to use prejudice to choose which company to work for?