Boeing Co. has agreed to pay more than $2.5 billion in penalties, including compensation to airlines, to resolve conspiracy to defraud charges related to its 737 Max aircraft.