U.S. District Senior Judge Frederic Block of the Eastern District of New York on Friday issued a preliminary injunction blocking the Trump administration from putting into effect a new rule that would have ended nondiscrimination protections for LGBTQ people seeking health care.

The U.S. Department of Health and Human Services finalized the rule on June 12, three days before the U.S. Supreme Court issued its 6-3 ruling in Bostock v. Clayton County, finding that Title VII of the Civil Rights Act prohibits discrimination against gay, lesbian and transgender workers.