DETROIT—General Motors is offering buyouts to most of its U.S. salaried workforce and some global executives in an effort to trim costs as it makes the transition to electric vehicles. The Detroit automaker wouldn’t say how many workers it is targeting, but confirmed that the move is aimed at accelerating attrition to meet a previously…