The Supreme Court's decision to overturn abortion rights is being used by Alabama lawmakers to push for a ban on gender-affirming medical treatment for children.

Alabama Attorney General Steve Marshall asked a federal court to allow the state's ban on gender-affirming care policies to go forward.

The 1973 landmark decision that legalized abortion was overturned by the Courts conservative majority who argued that it was not a fundamental right in the constitution.

Marshall is arguing against gender-reaffirming care. According to the AP, Marshall's office argued that gender-affirming care was not "deeply ingrained in our history or traditions."

"Just as the parental relationship doesn't give parents the right to get medical marijuana for their kids, neither does it give them the right to transition treatments," the brief said.

Alabama passed a bill that criminalized doctors who provide gender-affirming care for children.

The law could be challenged after the injunction was issued.

If the law had been enacted, providing gender-affirming medical care would have been a felony and could result in up to 10 years in prison.