The region’s unified approach to energy predates Russia’s invasion of Ukraine, but countries suffering from shortages may now have to watch gas flow past.