Georgia Attorney General Sam Olens on Monday hailed a judge’s decision to temporarily block a controversial White House directive to allow transgender public school students to use restrooms and locker rooms that fit their gender identity.

U.S. District Court Judge Reed O’Connor of Texas ordered a temporary injunction on Sunday of the federal government’s guidelines announced in May. The guidelines included a warning that states could lose federal funding if they did not adhere to the policy. Georgia and 12 other states, including Texas, filed a lawsuit in late May against the federal guidelines, arguing the threat to withhold federal funds for states that didn’t comply was unconstitutional.

“We are pleased that the federal court agrees that the guidance letter is yet another example of the President’s unconstitutional overreach,” Olens said in a statement. “The Constitution gives only Congress the power to write and rewrite laws. Threatening to withhold taxpayer dollars from schools if they don’t comply with this mandate is unconstitutional. I will continue to defend the Constitution on behalf of Georgians.”