Volkswagen just became Rivian’s biggest investor. It is not buying trucks. It is buying the software its own engineers could not build.