Of course I have to stipulate now that the Kim Dynasty are very bad no-good people whom we should all detest, otherwise trolls might pretend to misunderstand me.
Unless your parents are really young, https://en.wikipedia.org/wiki/Gulf_War is an obvious counterexample. There was a reasonably clear goal and the goal was accomplished.
I will grant that this is the only example I can think of right now, though.
I agree that keeping troops in place after the war was a bit questionable. Though one does need to answer the "OK, we kick Iraq out, what keeps them from coming back?" question. Which was answered in a ham-handed way, if at all. Keeping troops in Kuwait maybe made sense. Keeping troops in Saudi... one of the ostensible goals was in fact to prevent an Iraqi invasion of Saudi, not just to kick Iraq out of Kuwait. I do think in retrospect this was a bad idea. It's harder to tell how it looked at the time, and in particular what the Saudi government was telling the US government.
[0] One supposes that another option would have been to disrupt the governance of Iraq such that it would stop invading Kuwait, but later experience suggests that could also have had its drawbacks...
I don't think pre-1990 Middle East, where Iraq had just invaded and occupied a neighboring state (Kuwait) was exactly a stable place, either. Remember also the 1980–1988 Iran–Iraq War.
That is how war happens. Leaders who for various reasons taunt and provoke each other, implementing what to either populace seems a reasonable policy. (NK would like to be able to defend against the US, so they get nukes. The US would like to not be nuked, so they agitate strongly against them). Alas, these policies are in conflict, so tensions rise.
At some point, a small event - a misunderstanding, a border skirmish, etc - happens. In the context of already ratcheted up tensions, it spirals out of control because everybody feels the need to react quickly, before the other side escalates.
Nobody says "over my dead body". Everybody takes the next step, a step that's entirely reasonable from their perspective, but opens up "reasonable" steps for the other side. The core problem is that neither side considers the needs of the other side.
Peace requires active communication to constantly de-escalate and compromise, from both sides. An interest in a common good. War is what happens when you lose that and move to self-interest.