The European Union plans to ban new Russian gas deals by the end of 2025 and phase out existing contracts by 2027.