United Airlines and its flight attendants union reached a new labor deal.