Italy had threatened to veto the whole EU summit agenda unless it received the help it had requested on the migration issue