A US federal judge has dismissed the Trump administration’s lawsuit against Maine over the state’s policy allowing transgender students to compete in school sports according to the gender they identify with.

In a decision on Wednesday, US District Judge Stacey Neumann rejected the administration’s claim that Maine had violated Title IX, the federal law barring sex-based discrimination in education. She ruled that Title IX does not require Maine schools to exclude transgender women from women’s sports to receive federal funding.

“Title IX regulations permit sex-separated teams, but they do not say how a school must decide who belongs on which team, and they do not command exclusion of transgender girls from the girls’ team,” Neumann wrote. She described the administration’s arguments as “unmoored from the language of either the statute or the regulations” of federal civil rights law.

Maine allows transgender students to take part in school sports programmes in line with their gender identity. The policy conflicts with the Trump administration’s federal position on transgender athletes.

Trump has pursued several measures in recent years to limit the rights and recognition of transgender people. On the first day of his second term, he signed an executive order repudiating the concept of gender and saying his government would only recognise “the biological reality of sex”.

Weeks later, he signed another order titled “Keeping Men Out of Women’s Sports”. It argued that allowing transgender women to compete in women’s school sports violated Title IX by depriving participants of fair access to competition. The administration warned that schools failing to comply would lose federal funding.

The dispute between Trump and Maine became public in February 2025 during a governors’ meeting at the White House. Trump raised his efforts to exclude transgender athletes and asked Maine Governor Janet Mills, a Democrat, whether she would comply.

“Your population doesn’t want men playing in women’s sports, so you’d better comply because otherwise you’re not getting any federal funding,” Trump told Mills from the podium. “See you in court,” Mills replied.

That month, the Trump administration opened an investigation into Maine’s compliance with Title IX. It filed a lawsuit in April 2025.

After Wednesday’s ruling, Associate Attorney General Stanley Woodward Jr said in a social media post that the government would “continue its fight to protect female athletes across our Nation”. He also indicated the administration was considering an appeal.

Maine Attorney General Aaron Frey welcomed the decision, saying it confirmed the state’s actions were in line with the law. “It is also yet another rejection of the Trump Administration’s attempts to circumvent the law to force states to adopt its preferred policies,” his statement said. “Maine will not be intimidated into appeasing a federal government whose actions are unmoored from the rule of law.”

Transgender athletes make up a small portion of school athletics programmes, but have become a source of ire in right-wing politics in recent years.