If Trump is concerned about the medical costs for transgendered members of the Armed Forces he should just say so explicitly.  He should still welcome them to join the military and state that their medical cost to transgender will not be covered by the military while they serve.