American Medical Association issued a statement today on the subject (pro tip: when looking for medical sources, try ones from the current decade) https://www.ama-assn.org/ama-statement-transgender-americans-military