Anyone who knows history knew there was no victory there.
We are there because Pakistan is right next door...and is the only muslim country on earth with both terrorists and nuclear weapons. Our satellites focus on them every moment of every day. For good reason.
1 nuke goes astray and Israel could be devastated. Or a US city...if they could smuggle it into 1 of the million cargo containers that come thru our ports every year. Pakistan is a permanently "broken arrow".
Best to keep your friends close, and enemies closer. There will never be lasting change in Afghanistan. They do have the largest reserves of several rare earth elements on this planet, though. We wont mind getting our share of them.