DETROIT—General Motors sold 9.71 million cars and trucks worldwide last year, not enough to beat out Toyota for the global sales crown but good enough for second place. MORE