GM is adjusting to declining customer interest in electric vehicles as the automaker boosted its dividend and announced a new stock buyback.