Uber plans to invest up to $1.25 billion in Rivian as part of a deal to deploy up to 50,000 robotaxis through 2031, the companies announced Thursday.