Kowtowing to US foreign policy in Iraq and Afghanistan had disastrous consequences. Why are leaders making the same mistake again, asks Guardian columnist Owen Jones