Judge blocks rule against anti-trans discrimination