Nice try, but no. Iraq was bullshit, and even we protested it ourselves, but Afghanistan had the support of basically the entire world. Many of those allies you claim don't value our military anymore pee themselves a little at the thought of being left to fend for themselves by us leaving NATO and ceasing to massively subsidize their defense (e.g., the wailing and gnashing when Donald Trump was threatening to take us out of NATO).