A rule banning transgender people in Montana from changing the sex designation on their birth certificates and driver’s licenses will be temporarily blocked following a state judge’s ruling.

District Judge Mike Menahan on Monday ruled that the ban would be blocked while the case proceeds through the courts.

Chase Scheuer, press secretary for the attorney general's office in Montana, told Fox News Digital in a statement on Wednesday that the office is reviewing the judge's order to determine what steps to take next.

"The judiciary has once again defied the democratic will of Montanans by siding with special interest groups and radical leftist ideology," Scheuer said.

MONTANA SUPREME COURT BLOCKS BAN ON TRANSGENDER SURGERIES, PROMPTING OUTCRY FROM GOP LAWMAKER, SUPPORTERS

Demonstrators gather on the steps of the Montana State Capitol

Demonstrators gather on the steps of the Montana State Capitol in Helena, Montana, in March 2021. (Thom Bridge/Independent Record via AP, File)

Under state law, transgender people born in Montana are blocked from changing the sex designation on their birth certificate, and transgender residents are prevented from changing the sex on their driver’s licenses without an amended birth certificate.

Two transgender women filed the case in April on behalf of themselves and others who have been unable to obtain documents "that accurately reflect their sex," the complaint said.

TRANSGENDER WOMEN ARE ‘EVERY BIT AS ‘BIOLOGICALLY FEMALE’ AS CIS WOMEN,’ BISEXUAL, TRANS STATE LAWMAKER CLAIMS

The state had argued that sex is binary, either male or female, and that being transgender is not a protected class of people who could have their constitutional rights to privacy violated.

Menahan said it was not necessary at this point in the litigation to determine whether transgender Montanans constitute a special class on the basis of their transgender status, and disagreed with the state’s argument that discrimination on the basis of transgender status is not discrimination on the basis of sex.

Transgender rights activists in Montana

Transgender rights activists hold signs as they march through the University of Montana campus in May 2023 in Missoula, Montana. (Justin Sullivan/Getty Images, File)

"If the challenged state actions discriminate against transgender individuals on the basis of their transgender status, they also necessarily discriminate on the basis of sex," he wrote.

CLICK TO GET THE FOX NEWS APP

The ruling comes days after the Montana supreme court temporarily blocked a state law banning transgender surgeries for minors, saying the law likely violates Montana’s constitutional right to privacy.

The Associated Press contributed to this report.