"It's been a very confusing issue for the military, and I think I'm doing the military a great favour," President Trump said during a news conference in Bedminster, New Jersey, on Thursday.
The President said he has "great respect" for lesbian, gay, bisexual and transgender people and denied that his ban amounted to a betrayal after pledging to protect them during last year's campaign, the New York Times reported.
"I've had great support from that community," President Trump said. "I got a lot of votes."
He said the military is "working on it now", adding that "I think I'm doing a lot of people a favour by coming out and just saying it."
The President said that the military could not afford the medical costs of supporting transgender people. He also said transgender personnel made it harder for the military to focus on "decisive and overwhelming victory".
Earlier this week, two gay rights groups filed a lawsuit to halt the proposed ban before it takes effect. The lawsuit, filed on behalf of five transgender women who are now serving openly, said a ban would violate the women's constitutional rights.
One administration official said the White House was considering urging transgender service members to retire early. But a defence official, speaking on the condition of anonymity, said doing so might be difficult to defend in court.
Get the latest election news, live updates and election schedule for Lok Sabha Elections 2019 on ndtv.com/elections. Like us on Facebook or follow us on Twitter and Instagram for updates from each of the 543 parliamentary seats for the 2019 Indian general elections.