HARTFORD, Conn. — Connecticut Gov. Dannel P. Malloy signed an executive order on Wednesday directing the Connecticut National Guard not to discriminate against transgender people.

The move came as the Democrat condemned President Donald Trump’s plan to ban transgender individuals from serving in any capacity in the military.

Malloy called Trump’s plan “ignorant and profoundly troubling,” expressing his surprise about the president’s action.

“I never thought I would have to sign an executive order to answer a tweet or a twit,” Malloy told reporters, following a ceremony at the Bradley Air National Guard Base in East Granby. “That he chose this day to dishonor the service of Americans the way he did is quite frightening.”

Asked if he intended to refer to the president as a twit, Malloy said he meant to say the word tweet and “was confusing the two” words. He later smiled and chuckled when asked if he was sure that’s actually what he meant.

Malloy said he believes any able person who wishes to serve in the military should have that right.

“I want a very clear message to go out to our Connecticut service-people that we stand with them,” he said.

The Democratic governor’s executive order directs the Connecticut National Guard, the Connecticut Air National Guard and the other armed forces of the state to take no action that discriminates against service members in enlistment, promotion or any other aspect of their service.

The order would be superseded by any federal law, regulation or formal directive from the U.S. Department of Defense.