Arizona Governor Doug Ducey signed a repeal of the state’s “No Promo Homo” law that forbade teachers from giving students medically accurate, age-appropriate information about non-heterosexual people in their health education classes.

The law had prohibited instruction in HIV/AIDS curriculum that “[p]romotes a homosexual life-style,” “[p]ortrays homosexuality as a positive alternative life-style,” or “[s]uggests that some methods of sex are safe methods of homosexual sex.”

The decision to repeal the law came two weeks after the National Center for Lesbian Rights and Lambda Legal filed a lawsuit challenging the law on behalf of Equality Arizona. The state’s attorney general announced this week that he would not defend the law in court, saying it was obviously unconstitutional.

“A full repeal is an amazing development, as it removes the harmful and discriminatory language that we specifically challenged in the lawsuit,” NCLR Senior Staff Attorney Julie Wilensky said. “We are grateful to the leadership of Arizonans who have been advocating for many years on this issue.”

Related: Arizona state government is secretly funding an anti-LGBTQ hate group

“The writing was already on the wall, considering that the Arizona attorney general had already signaled they were not going to defend the law in court,” said Lambda Legal Staff Attorney Puneet Cheema. “We are thrilled that state officials have moved so quickly to get this harmful law off the books and allow LGBTQ students – in fact all students – to get access to the medically-accurate information that literally could save their lives.”

“The repeal of No Promo Homo is not a victory for one person or for one group. This is something that all of us share in because we were able to come together in a bipartisan way to ensure that Arizona students never have to feel like they stigmatized for who they are,” said Arizona State Representative Daniel Hernandez.