I can assure you it raised a lot of ethical question marks on many European and probably American heads.
The Americans and Soviets played a viscous game of tug of war without any regard for the rope. Now we have a country in shatters. I dont see what is so special about Afghanistan - or special enough - that they would think funding terrorism at the expense of the local population who had been ruled by a socialist figure anyway was a necessary evil.
I do think Afghanistan is a victim of invasive meddling by many nations, not just the US.