The US did blow those opportunities because the people who own the US government profit wildly from this conflict. With no Afghanistan, they need another endless war to fill their wallets up with.
No worries, they’re getting the war with China all queued up as we speak.