Updated

Some 13 states led by Texas will ask a federal judge Friday to halt the Obama administration's order to allow transgender students in U.S. public schools to use the restrooms of their choice.

The hearing in Fort Worth is the latest in the battle between the federal government and various states opposed to the policy change. U.S. District Judge Reed O'Connor will hear arguments over the states’ request for a preliminary injunction to halt the Obama directive just weeks before school re-opens for the fall. It is not knowwn when the judge might issue a ruling.

The White House in May told the nation's public school districts that they must allow transgender students to use bathrooms matching their chosen gender identity or risk losing federal funding.

States responded with a joint lawsuit challenging the order.

"We will not yield to blackmail from the president of the United States," Texas Lt. Gov. Dan Patrick said at the time. "This goes against the values of so many people."

The other states involved are Alabama, Arizona, Georgia, Kentucky, Louisiana, Maine, Mississippi, Oklahoma, Tennessee, Utah, West Virginia and Wisconsin.

Meanwhile, other states last month launched a similar suit to stop the new bathroom policy in public schools. They are: Arkansas, Kansas, Michigan, Montana, Nebraska, North Dakota, Ohio, South Carolina, South Dakota, and Wyoming.

The Obama administration's order followed a Justice Department lawsuit against North Carolina, which had passed a law requiring people in the state to only use public restrooms that correspond with their gender at birth.

Attorney General Loretta Lynch said in a statement that there is "no room in our schools" for discrimination.

Last week, the U.S. Supreme Court put on hold a lower court's order that would have allowed a Virginia high school student who was born female but identifies as male to use the boys' restroom.