During his seven years as Uber’s CEO, Dara Khosrowshahi has helped make the ride-hailing and food-delivery service the industry’s leader, outlasting a long list of rivals including Lyft.