The long-awaited agreement comes after Hungary's new government dropped the country's veto.