The Defense Department has approved a new policy that will largely bar transgender troops and military recruits from transitioning to another sex