>I think its fair to say the U.S. won in Iraq and Afghanistan as they are now governed by friendly democracies...
I dispute that Iraq is governed by a friendly democracy. Iraq, presently is largely split between the Islamic State and the post-Saddam regime currently headed by Haider El-Abadi. Neither is especially friendly towards the US at this point. Islamic State is... well, Islamic State. The Abadi administration, on the other hand, has largely fallen into the orbit of Iran, owing to their shared Shia Islam heritage.
The outcome of the Iraq War reminds me of the old joke about the French and Indian War. "Who won the French and Indian war? It was the British." Likewise, "Who won the America/Iraq war? The Iranians."