Uber plans to invest up to $1.25 billion in Rivian through 2031 to bring robotaxis to San Francisco and other cities.