The military announced in a social media post on Friday that it will no longer allow transgender people to enlist.