Judges are allowed to have political opinions. But they are required to be impartial and unbiased regarding the person and the case before them. If not, they must recuse themselves. Was the judge who signed the Mar-a-Lago search warrant unbiased regarding Trump? Surely you must be joking.