The war-triggered spike was the largest gas price increase in 30 years, according to an analysis of data from the US Energy Information Administration.