https://www.theguardian.com/uk/2005/jul/08/july7.development
Bin Laden was, though, a product of a monumental miscalculation by western security agencies. Throughout the 80s he was armed by the CIA and funded by the Saudis to wage jihad against the Russian occupation of Afghanistan. Al-Qaida, literally "the database", was originally the computer file of the thousands of mujahideen who were recruited and trained with help from the CIA to defeat the Russians.
https://transcripts.cnn.com/show/lkl/date/2001-10-01/segment/00
Bandar bin Sultan: This is ironic. In the mid-'80s, if you remember, we and the United - Saudi Arabia and the United States were supporting the Mujahideen to liberate Afghanistan from the Soviets. He [Osama bin Laden] came to thank me for my efforts to bring the Americans, our friends, to help us against the atheists, he said the communists. Isn't it ironic?
Larry King: How ironic. In other words, he came to thank you for helping bring America to help him.
Bandar bin Sultan: Right.
https://en.wikipedia.org/wiki/Maktab_al-Khidamat
altogether there were 33 cities in America that opened branches of bin Laden and Azzam's organization, the Services Bureau, in order to support the jihad
Most MAK financiers and support networks fronting as charitable NGOs were shut down and designated shortly following the September 11 attacks and the subsequent signing of the Patriot Act.