The auto industry has always been a powerhouse—of engines, energy use, and carbon emissions. But the gears are shifting fast.