The Soviet Union created those conditions in Afghanistan via its invasion and occupation. Good riddance to the thousands of Red Army thugs sent by our enemy to that hellhole.
The Soviet Union did not create the aftermath of its departure nor did they create who the U.S. teamed up with to help achieve it; in fact the U.S. did not really care much about what was going to happen after the Soviets left, we just wanted to create a “Vietnam” for them - as Carter’s Zbigniew Brzezinski said at the start.
The U.S. chose to partner with the Islamist Saudis and Pakistanis, funding the Mujahaddeen and Al Queda and spawning the creation of the Taliban. That we did all on our own.