Investor pressure, regulatory action, and shifts in demand push oil and gas companies to reduce their greenhouse gas emissions.