GM, Ford, and Stellantis have cut more than 20,000 U.S. salaried jobs this decade as AI and software reshape the auto industry.