Hyundai Motor Co. plans to spend $17 billion over the next six years on new electric- and autonomous-vehicle technology. About half the new money will be spent on electrification. Volkswagen AG and other competitors have also pledged tens of billions of dollars in electrification investments.