Uber Technologies Inc.’s business continued to recover in the first quarter as COVID-19 restrictions eased, and the sale of its self-driving unit helped produce the smallest quarterly loss in its history as a public company.