A federal judge has granted a preliminary injunction prohibiting the state from enforcing a portion of a bill limiting medical care for transgender children.

Judge Sarah E. Geraghty ruled late Sunday that four Georgia families and a national organization of parents with transgender children likely would succeed in a permanent challenge to a provision in Senate Bill 140 that bans hormone replacement therapy for the treatment of gender dysphoria in adolescents. The legislation also prohibits Georgians under 18 from receiving gender-affirming surgery.

Sunday’s ruling will allow the lawsuit challenging the ban on hormone therapy for minors to move forward.

The Republican-controlled General Assembly passed SB140 last March, voting along party lines. The law took effect July 1.

Supporters characterized the law as a measure to protect children from irreversible physical changes. Opponents, including parents of transgender youth and major medical societies, argued that delaying hormone replacement therapy or surgery until after age 18 would harm vulnerable transgender youths’ mental health.

“This law unapologetically targets transgender minors and denies them essential health care,” civil rights groups representing the plaintiffs wrote in a statement. “The ruling restores parents’ rights to make medical decisions that are in their child’s best interest, including hormone therapy for their transgender children when needed for them to thrive and be healthy.”

The plaintiffs are represented in the case by the Southern Poverty Law Center, the Georgia chapter of the American Civil Liberties Union, the Human Rights Campaign Foundation and the law firm O’Melveny & Myers LLP.

The offices of Gov. Brian Kemp and Georgia Attorney General Chris Carr did not immediately respond to a request for comment on the decision.

The Georgia ruling was the seventh in federal court blocking a ban on gender-affirming care for transgender youth, joining courts in Alabama, Arkansas, Indiana, Tennessee, Kentucky, and Arkansas.

Dave Williams is the Bureau Chief of Capitol Beat News Service.