DES MOINES, Iowa (AP) — A pivotal ruling from an Iowa appellate court has confirmed that the state can enforce a contentious law which bars teachers from discussing LGBTQ+ subjects with students from kindergarten to sixth grade, additionally prohibiting certain books in educational settings.

The appellate court's decision recently vacated previous temporary blocks set by a lower court, which had paused the law's enforcement. It reflects an ongoing legal struggle that has persisted since the law's enactment in 2023, supported by Republican lawmakers and Governor Kim Reynolds, who argue it promotes age-appropriate learning.

This ruling allows the law to take effect, despite earlier attempts by organizations including the Iowa State Education Association and LGBTQ+ advocacy groups like Iowa Safe Schools to challenge it. The law had been in effect until it faced scrutiny in federal courts earlier this year, where some provisions were temporarily blocked.

The appeals court ruled that the law's restrictions on discussions about gender identity and sexual orientation apply only to mandatory educational materials, clarifying that optional programs and discussions could continue.

“This is a significant victory for Iowa parents,” said Iowa's Republican Attorney General Brenna Bird. “It ensures that schools remain safe spaces for children and not venues for controversial ideologies.”

Critics of the law, including teachers and advocacy groups, contend that it excessively restricts educational resources and infringes on the rights of students to access a comprehensive education.

Meanwhile, the law also necessitates notifying parents if a student wishes to transition socially at school, further complicating the dynamics within classrooms. Advocates are committed to continuing their legal opposition, asserting that the law is unconstitutional and damaging to vulnerable students.