Two months after its policies were first proposed – and after two months of often-bitter debate – Saskatchewan’s Parents’ Bill of Rights has been passed.

The Saskatchewan Party government passed the legislation Friday by a tally of 40-12. It immediately received royal assent from Lt.-Gov. Russ Mirasty.

The new law will ensure parents have to give consent if a child under the age of 16 wants to change their name or pronouns at school. Parents also will have the right to pull their kids out of sexual education classes.

“Parents and guardians have a right to know what is being taught in their children’s school,” Education Minister Jeremy Cockrill said in a media release. ” ‘The Parents’ Bill of Rights’ is an inclusionary policy that ensures that parents are at the forefront of every important decision in their child’s life.”

Premier Scott Moe recalled MLAs two weeks early so that the bill could be debated and, ultimately, passed by his majority government.

After the pronoun and sex ed policies were first introduced by then-Education Minister Dustin Duncan in August, the reaction against them was swift.