The companies said the deal is now up to $5.8 billion, with the first VW models to use Rivian's software and electrical architecture arriving as early as 2027.