After two deadly crashes involving its best-selling 737 Max 8 planes five years ago, Boeing spent billions of dollars to make its products safer and repair its reputation. Now, the company is again confronting a wave of uncertainty and costs after a harrowing incident involving a different 737 jet.