Lol. TF is wrong with you?
The US funded the Mujahedeen through Pakistani secret services. It's also well known that the CIA and our special forces were on the ground training them.
Bin Laden went there with a wave of Arabs who became known as the Afghan Arabs. They fought under the Mujahedeen banner along with other foreign fighters bought and paid for by the Pakistani secret services using US funds.
Al Qaeda was formed once the Russians beat feet. Those Afghan Arabs decided to hang around and join up.
Those same Pakis took the rest of the funding and used it to pay for their madrassas where they trained tons of their own "students". They then sent them in number back to Afghanistan once the Russians retreated. There they formed their own faction and fought against the remnants of the Mujahedeen, who were by then shattered into smaller factions. Those asshole became the Taliban.
So the US not only paid for the Taliban, they also helped to form Al Qaeda.