This is as poor a "victory" as the others suggested in this thread. "We won because you spent so much money on bombs and missiles exploding on us, and soldiers occupying us" is a line I'd expect from Zap Brannigan and not anyone residing in reality. They didn't inflict anywhere near that dollar amount in damages, instead it was paid to American soldiers and contractors.
The simple fact is that the US occupied their country for years. Bombed and killed with complete impunity, and then decided to withdrawal. It's absurd to call that a victory for the Taliban or Afghanistan. Their claim to victory is that they aren't entirely dead at the time we wanted to withdraw and the reason for that is that we knew it would be immoral to use the force required to completely kill them, not any strategy or cunning from them.
It's bad rhetorically and morally to pretend like this is an American loss because that implicitly says that in order to "win" we'd need to stay in Afghanistan indefinitely. We shouldn't have been there anywhere near as long as we were, we shouldn't have done anywhere near as much as we did, and it's great news that we're withdrawing. Calling it a loss, or a Taliban victory, isn't just immoral because it implicitly argues for perpetuation of the war, it's also completely delusional.