Facing investigations and lawsuits, the company’s chief executive is struggling to restore public confidence after two fatal crashes