Surging oil and gas prices could increase inflation — a bad omen for a renewables industry that recently canceled projects because of higher costs.