A federal judge ruled late Friday that the injunctions put in place to halt President Trump Donald John TrumpOmar fires back at Trump over rally remarks: 'This is my country' Pelosi: Trump hurrying to fill SCOTUS seat so he can repeal ObamaCare Trump mocks Biden appearance, mask use ahead of first debate MORE’s ban on transgender members of the military should remain in place.

U.S. District Judge Marsha Pechman of the Western District of Washington blocked the federal government from imposing the ban, ruling that transgender people are a protected class of people, according to HuffPost.

“The Court also rules that, because transgender people have long been subjected to systemic oppression and forced to live in silence, they are a protected class. Therefore, any attempt to exclude them from military service will be looked at with the highest level of care, and will be subject to the Court’s ‘strict scrutiny,’ ” Pechman wrote.

ADVERTISEMENT

The judge, an appointee of former President Clinton, wrote that the government would have to show the ban was “sincerely motivated by compelling interests, rather than by prejudice or stereotype.”

She also noted that the federal government had failed in its case “to identify even one General or military expert [Trump] consulted, despite having been ordered to do so repeatedly.”

The ruling is the latest court order to halt the ban on transgender troops.

Trump moved forward last month with his plan to ban most transgender people from serving in the military.

The White House released a memorandum at the time outlining policies set by Defense Secretary James Mattis James Norman MattisBiden courts veterans amid fallout from Trump military controversies Trump says he wanted to take out Syria's Assad but Mattis opposed it Gary Cohn: 'I haven't made up my mind' on vote for president in November MORE. The memo stated that transgender people are "disqualified from military service except under limited circumstances."

The president initially announced such a ban on Twitter last summer, but the policy has faced several legal challenges in the months since.