European Union leaders reached a deal late Monday on a sixth sanction package that would include a partial oil embargo against Russia after resolving an objection from Hungary.

During a marathon meeting in Brussels, the EU members agreed to an embargo that covers Russian oil transported by sea, allowing a temporary exemption for imports delivered by pipeline. 

EU Council President Charles Michel said on Twitter that the deal covers more than two-thirds of oil imports from Russia, “cutting a huge source of financing for its war machine. Maximum pressure on Russia to end the war.” 

European Commission President Ursula von der Leyen, who had sounded skeptical a deal would be achieved at the two-day summit, said the new sanctions will “effectively cut around 90% of oil imports from Russia to the EU by the end of the year.” EU nations get about 25% of their oil from Russia and have been scrambling to find other options.

Their leaders reached a compromise after Ukrainian President Volodymyr Zelenskyy urged them to end “internal arguments that only prompt Russia to put more and more pressure on the whole of Europe.”

The package had stalled in recent days as Hungarian Prime Minister Viktor Orban repeatedly claimed his nation’s economy would shatter without oil from Russia, which supplies 60% of Hungary’s oil. All 27 EU countries must agree for the package to win approval. As a landlocked nation, Hungary is not impacted by the ban on oil brought in by tanker.

Other developments:

►The new package of sanctions EU members agreed to late Monday includes barring Sberbank, Russia’s biggest bank, from the SWIFT global system for financial transfers.

►Kalush Orchestra, the Ukrainian band that won the Eurovision Song Contest, raised more than $1.2 million for the war effort by auctioning off its trophy and the pink hat won by its lead singer. Some of the money will pay for drones for the Ukraine army.

►Turkish President Recep Tayyip Erdogan told Russian President Vladimir Putin he’s ready to resume a role in ending the war, including taking part in a possible “observation mechanism” between Ukraine, Russia and the U.N. Negotiations in Istanbul held in March failed to make headway.