The deal is crucial for both companies as Rivian gets a financial lifeline to survive a sharp slowdown in EV demand and VW receives low-cost, high-performance EV technology that traditional automakers have struggled to master.