Of course we won the war, the USSR ain't on the map today for some obvious reasons, we may have lost vietnam but Afghanistan was a disaster for the Russians.
Because supporting the Taliban and the Mujadideen also had no negative repercussions to the united states, Damn you Operation: Cyclone and the Reagan doctrine.
Sure us supporting the Taliban had given us problems in the future. But im just saying at the time it was a rather good option because it sure was a thorn in the USSR's side.
Personally, I wouldn't the economic collapse of the Soviet union was bound to happen with or without the war we just shorten it up some with the war. The blowback from the covert operations in Afghanistan far outweigh its benifiets.