Terry Glavin: Tehran’s interference had tied NATO’s Iraq mission in knots, and the idea of ‘stability’ had become an illusion