President Trump’s decision on Wednesday to bar transgender individuals from serving in the U.S. military was blasted by elected officials in New York.

Trump announced the decision via Twitter, saying it came after “consultation with my Generals and military experts.”

U.S. Sen. Kirsten Gillibrand, who had pushed for an end to the “don’t ask, don’t tell” policy barring gay people from serving openly, knocked the decision as “an insult” to service members.

“These service members are willing to die for their country, and this is an insult to their brave and honorable service,” she said. “This new directive is harmful, misguided, and weakens – not strengthens – our military. I will introduce legislation and will fight to overturn this discriminatory decision.”

Rep. Joe Crowley, a top Democrat in the House from Queens, called the decision “offensive.”

“Capable, motivated, and talented Americans who want to serve their country should be welcomed into our military as patriots – not shunned because of who they are. President Trump and his administration should be ashamed,” he said. “This decision is even more disgusting given that the Trump administration has indicated this ban was put in place for purely political reasons. Our military is made stronger when adept men and women, including the courageous transgender individuals who want to serve, are able to contribute to our national security and safety.”

And Gov. Andrew Cuomo, traveling today to Washington to lobby for transportation funds, also criticized the move in a Twitter post.

“This administration’s directive against the transgender community is intolerable, unjust, and a betrayal of our values,” he posted. “New York stands united with the transgender community, and against those who seek to drive us apart.”