Trump issued his surprise announcement on Wednesday morning in a series of Twitter postings, saying he would ban transgender people from the U.S. military, creating vast uncertainty for thousands of transgender servicemembers. As a presidential candidate, Trump last year vowed to fight for lesbians, gays, bisexuals and transgender people. His decision drew condemnation from rights groups and some lawmakers in both parties as politically motivated discrimination but was praised by conservative activists and some of his fellow Republicans. Although the White House said Trump had "extensive discussions with his national security team," his announcement appeared to catch the Pentagon off guard. The White House said Defense Secretary Jim Mattis was informed after the president made the decision on Tuesday to go ahead.