Boeing has racked up a $280 million second-quarter loss on its government contract to deliver two new Air Force One presidential aircraft, the company said in its latest earnings report, becoming a cautionary tale for companies tempted by fixed-price government contracts.