By military standards it has been won
It certainly wasn't an intelligent policy decision or a success by any standards in morality. We did stabilized the security situation. That alone does allow us to declare victory and now hand it over to the Iraqis. What they do now with their country is their own business.
