The two neighbours also agreed to lobby for Ukraine’s EU membership.