In lawsuit filing, Pentagon says transgender troops can’t serve unless they meet a warfighting need