A judge has all of those rights in their private life. What they shouldn't do is advertise a political agenda in court. It's completely inappropriate and he knew it...yet he flaunted it.

The ethical rule for judges is to appear in court, and in fact act, unbiased.