WASHINGTON>> A federal judge blocked enforcement of President Donald Trump’s executive order banning transgender people from military service on Tuesday, the latest in a string of legal setbacks for his sweeping agenda.

U.S. District Judge Ana Reyes in Washington, D.C., ruled that Trump’s order to exclude transgender troops from military service likely violates their constitutional rights.

Reyes delayed her order until Friday morning to give the administration time to appeal. “The court knows that this opinion will lead to heated public debate and appeals. In a healthy democracy, both are positive outcomes,” Reyes wrote. “We should all agree, however, that every person who has answered the call to serve deserves our gratitude and respect.”

The judge issued a preliminary injunction requested by attorneys for six transgender people who are active-duty service members and two others seeking to join the military.

On Jan. 27, Trump signed an executive order that claims the sexual identity of transgender service members “conflicts with a soldier’s commitment to an honorable, truthful, and disciplined lifestyle, even in one’s personal life” and is harmful to military readiness. In response to the order, Defense Secretary Pete Hegseth issued a policy that presumptively disqualifies people with gender dysphoria from military service.

Gender dysphoria is the distress that a person feels because their assigned gender and gender identity don’t match. The medical condition has been linked to depression and suicidal thoughts.