Iraq pledges to stop attacks by factions on foreign missions, and security forces monitor militia headquarters