CARSON CITY, Nev. – A bill that would preserve single-sex restroom and shower facilities in schools was approved by the Nevada state Assembly’s Judiciary Committee on Friday, following a tense hearing.

But the American Civil Liberties Union, which believes schools should allow transgender students to use facilities that match their self-perceived gender, immediately threatened legal action.

Vanessa Spinazola, legislative and advocacy director for ACLU of Nevada, told the Judiciary Committee that if the bill becomes law, Nevada schools would risk losing federal funding and could be targets for investigation by the Equal Opportunity Commission, according to a report from MyNews4.com.

MORE NEWS: From Classroom to Consulate Chef: Culinary Student Lands Dream Job at U.S. Embassy in Paris

She also threatened a lawsuit against the state, saying the bill “will be litigated if it passes,” according to the news site.

The Obama Administration’s Justice Department has issued an opinion that open restroom and shower access for transgender students is protected by the federal Title IX law, which prohibits discrimination in schools based on gender.

Supporters of the Nevada bill say the administration is overstepping the law. They say there is nothing in Title IX language that extends to transgender students, and no court has ever ruled that Title IX gives those students open access to single-sex facilities.

The Nevada legislation was introduced last month, after the Washoe County (Reno) school district adopted a policy allowing transgender students to use restroom and shower facilities of their choice, based on their self-perceived gender.

That means transgender students who are biological boys can use girls facilities, and vice-versa.

The policy also prohibits school employees from discussing gender identify issues with parents, even if their children are using restroom and shower facilities predominantly used by students of the opposite biological sex.

MORE NEWS: Know These Before Moving From Cyprus To The UK

Supporters of the Nevada legislation say policies like the one adopted in Washoe County sacrifice privacy and dignity for the vast majority of students. The legislation would allow schools to make special accommodations for transgender students, but would preserve single-sex restroom and shower facilities for those who care to use them.

The legislation was originally assigned to the Assembly Education Committee, but no hearing was scheduled and Friday was the deadline for legislation to be approved in committee.

The Nevada legislature does not meet again for two years.

But the chairman of the Judiciary Committee agreed to schedule a last-minute hearing for the bill on Friday, and it bill passed by an 8-4 vote, with one member absent. All Republicans on the committee voted in favor of the legislation, while all Democrats voted against it.

The legislation will now go to the Senate for consideration. If it passes, it would go to the governor for final approval.