AUSTIN, Texas (AP) — Texas and 11 other states are asking a federal judge to halt an Obama administration directive on bathroom rights for transgender students in U.S. public schools.

The hearing Friday in Fort Worth comes three months after federal officials told schools that transgender students must be allowed to use bathrooms and locker rooms consistent with their chosen gender identity. U.S. Attorney General Loretta Lynch has said there is "no room in our schools" for discrimination.

State Republican leaders accuse the Obama administration of undoing what they call privacy safeguards.

U.S. District Judge Reed O'Connor may not make an immediate ruling.

The hearing comes a week after the U.S. Supreme Court ruled that a Virginia school board can block for now a transgender male from using the boys' restroom once school resumes.