A federal district court judge on Wednesday temporarily halted parts of a nondiscrimination rule that would have kept insurers and medical professionals from denying hormone therapy, gender transition surgeries and similar medical care for transgender people.

U.S. District Judge Louis Guirola Jr. sided with 15 states that had argued the language the rule was based on — the 1972 Title IX nondiscrimination law — encompasses biological sex, but not gender identity. Guirola’s injunction applies nationwide to the Affordable Care Act rule, which would have gone into effect Friday.