European Union legislation requires member states to completely phase out all Russian natural gas purchases by the end of 2027.