ISIS filled the power vacuum of a larger regional instability caused by the (botched) US invasion and provided several (fleeting) local maxima of stability.
I remember reading about Al Qaeda / Bin Laden who was funded by CIA to fights Russians.
The US absolutely participated (and continues to participate in) the SCW.