Transportföretaget Uber Technologies gick bättre än väntat under det andra kvartalet, enligt bolagets senaste rapport.