Several automakers posted annual sales records as sales of gas and hybrid SUVs surged, while companies with aging lineups struggled.