The Mideast's politics and wars are complicated; I cannot hope to keep up. U.S. is strongly allied with at least two strong brutal regimes, Saudi and Israel, and has fought stupid wars. I do wish U.S. policies would improve.
The U.S. fought in Afghanistan for two decades, ostensibly to curtail the power of Al-Qaeda. Al-Qaeda and ISIS are weakened now, though the war never was very smart. The war cost lives and treasure ... and is ending with the Taliban returning to power. What a fiasco!
The Iraq War was even stupider. It had zero strategic purpose, destroyed at least a million lives, and cost trillions in treasure. Trillions added to the national debt with nothing to show for it. Not to mention a generation of American soldiers suffering PTSD.
However the War in Syria DOES have strategic purpose. Russia hopes to turn Syria into a vassal state and acquire a military presence in the Mid-East. This would not be good for the U.S. nor for Western Civilization more generally. Iran is effectively allied with Russia in this endeavor. If U.S. aggression can prevent or delay the fall of Syria to Russia and its allies, that would be good.