Two of America’s biggest oil companies have to allow a shareholder vote on climate change