A federal judge on Tuesday struck down a 2023 Florida law that blocked gender-affirming care for transgender minors and severely restricted such treatment for adults, calling the statute unconstitutional.

Senior Judge Robert Hinkle said the state went too far when it barred transgender minors from being prescribed puberty blockers and hormonal treatments with their parents’ permission. He also stopped the state from requiring that transgender adults only receive treatment from a doctor and not from a registered nurse or other qualified medical practitioner. And he barred a ban on online treatment for transgender adults.

Hinkle said transgender people are constitutionally entitled to the legitimate treatment they need and, quoting the late Rev. Martin Luther King Jr., compared those who oppose it to those who were once against equality for minorities and women.

Republican Gov. Ron DeSantis’ office blasted Hinkle’s ruling, issuing a statement calling it “erroneous,” and vowing to appeal.