Arab states agreed on Sunday to take the "necessary measures" to confront Islamic State militants, Arab League chief Nabil al-Arabi said, after a meeting of foreign ministers in Cairo.