WASHINGTON—General Motors Co (GM) said Thursday it was setting a goal to sell all its new cars, SUVS, and light pickup trucks with zero tailpipe emissions by 2035, a dramatic shift by the largest U.S. automaker away from gasoline and diesel engines. GM, which also said it plans to become carbon neutral by 2040, made…