Ofgem says the investment will help lower reliance on imported gas and make wholesale energy cheaper.