Shares of Rivian Automotive Inc. skyrocketed after hours Tuesday after Volkswagen AG said it should invest $1 billion within the electric-vehicle maker, with plans to pour billions more if an EV-focused three way partnership between the 2 corporations gets off the bottom.