Uber chose Dara Khosrowshahi, the chief executive of Expedia, as its new CEO, handing him the challenge of leading the ride-services company out of a nearly year-long crisis.