Uber shares rose after the company announced 3,300 layoffs, as investors weighed lower costs against billions in robotaxi investment and competition.