The pair of rulings came in an environment where Trump and red states are pushing anti-trans policy across the United States.