Taliban is back in power, having stronger grap on power then before. Meanwhile, everybody knows what happens to those who cooperate with USA - they get abandoned and betrayed.
You don't deal with bad actors by becoming a bad actor yourself. If the US really wanted to deal with 'the terrorists' (by your definition) then they should start with ensuring that there is no risk of increasing their numbers as a result of the operations performed. Failing at that is an automatic own goal because now you've turned a problem into a larger problem.
Terrorism is the typical response of any group that isn't able to wage war in the preferred manner of the perceived enemy. But nicely declared wars between nation states are an imaginary thing, every nation that ever went to war pretended they had the moral high ground, brought a suitcase full of fig leaves and usually some holy scripture or some other book to prove that theirs was the just cause. Solving that takes unity, time, massive amounts of money and the ability to introspect. If you don't bring all of those (or even none of those) to the table then the only thing you will achieve is that you will end up in a (possibly much) worse place than where you were before.
Lumping everybody in Iran under the 'terrorists' banner is just as stupid as lumping everybody in Israel under the 'zionists' banner. Neither is going to lead to a resolution, all you will end up achieving is more war, more people dead and another century or so added to this conflict. But I'm not surprised. Trump & Co are categorically incapable of planning anything that takes longer than a news cycle, whether it is making changes to the White House or trying to grab some more oil.