GLOUCESTER COURTHOUSE, Va. – Transgender student Gavin Grimm can now use the boy’s bathroom at school, despite the fact that he was born a she.

Gloucester High School student Gavin Grimm, a biological female who “identifies” as a male, was allowed to use the boy’s bathrooms at school until parents complained and the school board changed its restroom policy in December 2014. Grimm refused to use a unisex bathroom, and sued the school district with the help of the American Civil Liberties union alleging the restroom policy violated his constitutional rights and federal Title IX anti-discrimination laws, EAGnews reports.

MORE NEWS: Know These Before Moving From Cyprus To The UK

The U.S. District Court for the Eastern District of Virginia initially denied a request for a preliminary injunction to allow Grimm to use the male facilities, and dismissed the claim the policy also violates Title IX. But the U.S. Court of Appeals for the Fourth Circuit reinstated Grimm’s Title IX claim in April.

The appeals court denied a request to revisit the case in May.

On Thursday, a district court on granted a preliminary injunction to force the high school to allow Grimm to relieve himself in the boy’s bathroom as the district prepares to appeal the case to the Supreme Court, NBC News reports.

“The case is only about G.G.’s access to the boys’ restrooms; G.G. has not requested access to the boys’ locker rooms,” Judge Robert Doumar noted in his ruling this week, according to the news site.

Grimm, of course, is super excited he can now use the boy’s restroom at school.

“I am elated to hear that I’ll be able to attend my senior year of high school with my full rights restored,” Grimm said, according to an ACLU statement. “After nearly two years of humiliation and intense struggle, equality has finally prevailed. Now hopefully other transgender people will not have to face this type of discrimination.”

MORE NEWS: How to prepare for face-to-face classes

ACLU senior staff attorney Josh Block also had something to say.

“Under the Fourth Circuit’s decision, it was already clear that Gavin would ultimately prevail in court,” Block said. “This preliminary injunction makes sure that Gavin’s legal victory has a real impact on his life while he is still in school.”

The Gloucester County School Board was unavailable to comment about the case, according to ABC News.

The U.S. Justice Department last summer filed a “statement of interest” in Grimm’s case that sided with the student, and alleged that not allowing him to use whatever restroom he wants equates to sex discrimination.

Obama more recently – following the reinstatement of Grimm’s Title IX claim – issued a decree to all schools informing them of the president’s interpretation of the anti-discrimination law with the implied threat of losing federal school funds if local officials refuse to comply.

Obama’s edict prompted mixed reactions from school officials across the country, and many school officials were quite candid in expressing what they think about the president’s threat.

“I got news for President Barack Obama,” Texas’ Port Neches-Groves Superintendent Rodney Canvass told 12News in May. “He ain’t my president and he can’t tell me what to do. The letter is going straight into the paper shredder.”