Uber's revenue climbed 18% from a year earlier, topping analysts' estimates.