By Lawrence Hurley

WASHINGTON (Reuters) - A U.S. court on Friday ruled in favor of a Trump administration policy barring certain transgender people from serving in the U.S. armed forces, handing the president his first legal victory on the issue after several defeats.

The U.S. Court of Appeals for the District of Columbia Circuit overturned a decision by a federal judge in Washington, D.C., that blocked the policy, saying it likely violates the constitutional rights of transgender recruits and service members.

President Donald Trump announced in March that he would endorse a plan by former Defense Secretary Jim Mattis to restrict the military service of transgender people who experience a condition called gender dysphoria.

The appeals court victory is limited because other federal courts issued injunctions against the policy, which applied nationwide. The administration already has asked the Supreme Court to weigh in on the issue.

The high court is due to consider whether to hear three separate government appeals at its private conference on Jan. 11.

The various injunctions allowed transgender troops to join the ranks as of Jan. 1, 2018.

"Today’s ruling is a devastating slap in the face to transgender service members who have proved their fitness to serve and their dedication to this country,” said Shannon Minter, legal director of the National Center for Lesbian Rights, one of the groups challenging the policy.

The three-judge panel said in an unsigned opinion that District Court Judge Colleen Kollar-Kotelly was wrong to conclude that the new restrictions were essentially the same as the original ban, which she had also blocked.

"It was clear error to say there was no significant change," the judges wrote in the ruling.

The new plan, for example, "appears to permit some transgender individuals to serve in the military consistent with established military mental health, physical health, and sex-based standards," the court said.

Story continues

The American Psychiatric Association defines gender dysphoria as a “clinically significant distress” due to a conflict between a person’s gender identity and their sex assigned at birth. Not all transgender people suffer from gender dysphoria, according to the association, which opposes a military ban.

The gender dysphoria restriction replaced an outright ban on transgender service members that Trump announced in July 2017 on Twitter.

Trump's move reversed Democratic former President Barack Obama’s policy of allowing transgender troops to serve openly and receive medical care to transition genders.

(Reporting by Lawrence Hurley, additional reporting by Andrew Chung; Editing by Susan Thomas, Bill Trott and David Gregorio)