Over the past two years, Uber Chief Executive Dara Khosrowshahi has used his peace-making and political skills to settle battles with lawmakers and rivals and endear himself to employees who had suffered through a wretched period of corporate scandal.