Uber's cost cuts and layoffs have yielded its first operating profit ever