President Donald Trump got yet another smackdown in court on Thursday over his efforts to restrict transgender rights.

The controversy stems from President Donald Trump's order that passports must identify a holder's gender at birth, regardless of their current gender identity.

"A lower court judge ruled in April that transgender plaintiffs were likely to succeed in their claim that the policy was 'rooted in irrational prejudice toward transgender Americans' and violated the Constitution’s equal protection guarantees," said the report.

The Trump administration sought to get a stay of that order, but "In a sharply-worded order on Thursday, a three-judge panel of the U.S. Court of Appeals for the First Circuit wrote that the government’s motion to stay the injunction 'fails to engage meaningfully with the district court’s analysis' of that claim."

The appellate order also laid out that the Trump administration's reasoning for why the order should be stayed didn't hold up.

"In its motion papers, the government mostly describes certain long-term institutional interests of the executive branch that may be harmed if the challenged policy is enjoined," said the order. "In contrast, based on the named plaintiffs' affidavits and the expert declarations submitted by the plaintiffs, the district court made factual findings that the plaintiffs will suffer a variety of immediate and irreparable harms from the present enforcement of the challenged policy, including 'a greater risk of experiencing harassment and violence' while traveling abroad."

The Trump administration has been doing everything it can to undermine transgender rights. On Wednesday, the Justice Department even moved to explore ways to prohibit transgender people from owning guns.