It will invest in pipelines in other countries but will speed up a shift to green energy.