Charlie Wilson's War was an interesting movie... but in reality, it was William Casey's War. Which created the Taliban and Osama bin Laden as well, leading to Al Qaeda and 9/11... and then Al Qaeda became an 'ally' in the effort to overthrow Syria's government. Weird, isn' it?
The Mujahideen were not the Taliban, which did not exist until 5 years after the Soviet-Afghan War. Some of the US-backed resistance fighters did go on to join the Taliban, but others opposed it and later sided with the US when they invaded in 2001.
All that being said, obviously the US has failed repeatedly in Afghanistan, but the initial intervention against the Soviets was not the main factor. The Taliban's persistence is due to multiple US geopolitical blunders that happened in the decades after the Soviet-Afghan War.
Its true that US army created the Taliban, but it quickly brings the "the road not taken" fantasy that is only that, a fantasy, as in people imagine the middle east would be peas and roses if only America had not helped create the Taliban, and thats probably far from reality. I don't think it would have been take long for any other faction to use commercial Airlines to attack infrastructure, it was a very attractive attack vector for any enemy faction, specially given the lack of security (this days one hijacked plane wouldn't last long mid air).