To put things into perspective a bit, it's not like this is a new burden of fear. American trans veterans have already been under the threat of discharge, they haven't recently come under that threat.
That said, it's morally reprehensible that something utterly irrelevant to one's ability to work should keep them from serving. Opponents who scream unit cohesion often forget that not every post in the military sees live ammunition being thrown back and forth. There are intelligence positions, recon positions, information security positions, police positions, research positions...look, let's just skip a step. Name a civilian job and there's probably a military equivalent. There are military librarians, for Heaven's sake! God knows unit cohesion is critical to maintaining files.
Believe it or not, the military is a hell of a lot bigger than just the combat personnel. Not everyone in the military even carries a freaking gun to work, let alone gets shot at! I'm just saying, I don't see how being a transman or a transwoman somehow disqualifies one from doing any and every single job the military has available. Briefly summarized: the unit cohesion argument doesn't hold up universally.