The heads of the world’s largest fossil-fuel companies are finally taking lower carbon emissions seriously — thanks to pushy investors