Some of the world’s biggest companies, including GM, Google, BMW, and Volvo, are investing heavily in technologies designed to get humans out from behind the wheel.