Tribunal rules against magistrate opposed to gay adoptions