GM’s prototype self-driving vehicles have been developed in San Francisco by Cruise Automation, the onetime startup that GM acquired in March 2016 for a reported $1 billion.