Uber’s two most-important segments, ride-hailing and restaurant delivery, both turned the corner.