The problem is that "being at war" isn't really the problem, it's a symptom. A lawless and destabilized gulf region is the result of incomplete and inneffective military action, and in a darkly hilarious way is only treatable by more whack-a-mole warfare.
It wasn't a war we could win. We fought it anyway. Now we're stuck trying to lose in a tolerable way. Which requires more fighting.
At some point the balance will tip and China will take over patronage of the right selection of powers to push us out, which will disentangle western involvement (and make it their problem, of course). But at this stage there really is no hope for genuine stability.