Volkswagen AG and Rivian Automotive Inc. have ambitions of selling the electric vehicle technology they’re developing together to other carmakers in the future.