First of all, that is the problem with modern war, you don't fight to conquer. You fight to implement policy, which unlike fighting a war, you don't have a specific guideline or timeline to chart your progress.
Ask yourself this question, to what end it is a mission accomplished on building a nation? You never stop building a nation because what happened today may not be the same tomorrow, the Sudan Coup have told us just that.
On the other hand, I wouldn't say Iraq and Afghanistan "Win" both war, I mean Iraq is completely destroyed inside and out, have been ravaged by ISIS for decade and Afghanistan is a fail state they was back in 1990s. Nobody win a political motivated war, except politician who line their pocket.
This is these wars are about, do you think US military care about winning or losing Iraq or Afghanistan? They don't, as long as the Armed Force have new budget and they can skim it off from the Weapon manufacturer, that's a win for them, if you lose a leg, a hand or your live fighting in those war, then it's too bad for you.
We went over there because we can, that show people power, I can fly 12,000 mile to your home and f up your home if you piss us off, that's the meaning of true power.