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 its announcement just over a week after President Joe Biden took office pledging to tackle greenhouse gas emissions and dramatically boost the sales of electric vehicles. GM sold 2.55 million vehicles in the United States last year, only about 20,000 of which were EVs. It said in November it was investing $27 billion in electric and autonomous vehicles over the next five years, up from $20 billion planned before the coronavirus pandemic. GM, which was up as much as 7.4 percent on Thursday, was trading up 3 percent at midday eastern time. GM Chief Executive …