A federal appeals court essentially sidestepped the Trump administration by ruling that a 17-year-old transgender student from Wisconsin can use the boys’ bathroom — and the case has the potential to help trans students across the country.

In a unanimous decision, the three-judge Seventh Circuit Court of Appeals said Tuesday that Ash Whitaker, a senior at Tremper High School, can use facilities consistent with his gender identity under the protections of Title IX, a law that prohibits sex discrimination in schools receiving federal funds.

The ruling is good news for LGBTQ students and advocates who have received mostly bad news this year related to Title IX. In February, Attorney General Jeff Sessions and Education Secretary Betsy DeVos jointly rescinded Obama-era guidance on the interpretation of the law regarding transgender students. That in turn led the Supreme Court to decline to hear the case of transgender teen Gavin Grimm, which relied on the Obama-era guidance.

But the ruling in Whitaker v. Kenosha Unified School District says trans students are protected by Title IX irrespective of the Obama-era guidance. It marks the first time a federal court has ruled that an anti-discrimination law applies to transgender Americans, and it stands to be cited in future legal battles over transgender rights.

“It is certainly an important case,” said Ruthann Robson, a professor specializing in LGBT issues at the City University of New York School of Law. “Courts are beginning to decide that prohibitions against inequality based on sex include discrimination based on transgender status. This unanimous opinion from the Seventh Circuit in the heartland of the nation… is a bellwether.”