Uber will invest up to $1.25 billion in Rivian in the next five years, with an initial batch of 10,000 R2 robotaxis already on order.