The Texas Supreme Court on Thursday dismissed efforts to temporarily block the state’s near-total ban on gender-affirming care for minors, clearing the way for the measure to take effect Friday.

The law, known as Senate Bill 14, prohibits most minors from receiving treatment common for gender dysphoria, including puberty blockers and hormone therapy.

Exceptions are provided for intersex patients and for some minors who were already receiving gender-affirming care before June 1, although those minors would be forced to “wean off” any drugs prescribed as part of a treatment plan. Under the law, health care providers who offer such care would have their license revoked.

Texas is among several Republican-led states that advanced bans on gender-affirming care for minors in the last legislative session, prompting legal challenges across the country.