Pilots to get up to 40% raises and other benefits in $10 billion deal struck by United Airlines and union: ‘Historic agreement’