Uber says it will invest up to $1.25 billion in electric vehicle maker Rivian Automotive to help launch up to 50,000 robotaxis.