Iraq was the aggressor and invaded Iran hoping to take advantage of instability in Iran following the revolution.
Yes, but so what?
We didn't provide aid to Saddam in order to help him "win" if by win you mean some sort of strategic advantage over the Iranians.
At the time we started providing aid to Iraq, the Iranians had started to pull their act together as a military force, and the tide of battle was turning against Hussein. (Saddam will certainly not go down in the annals of history for as a great militarily strategist or tactician...)
We wanted them to punch each other out to a stalemate that would essentially restore the staus quo ante prior to Hussein's invasion...
Which is pretty much what happened, and the best possible result to the conflict from the standpoint of US and Western interests....
It was the right policy, and it largely succeeded in achieving the objective.
Re Afghanistan:
You are aware I presume that the policy of aiding the Mujahedin began under Carter...and in fact it began even
before the Soviets invaded. For the
purpose of trying to
provoke a Soviet invasion. In the late 90's Zbigniew Brzezinski actually bragged about this:
Question: The former director of the CIA, Robert Gates, stated in his memoirs ["From the Shadows"], that American intelligence services began to aid the Mujahadeen in Afghanistan 6 months before the Soviet intervention. In this period you were the national security adviser to President Carter. You therefore played a role in this affair. Is that correct?
Brzezinski: Yes. According to the official version of history, CIA aid to the Mujahadeen began during 1980, that is to say, after the Soviet army invaded Afghanistan, 24 Dec 1979. But the reality, secretly guarded until now, is completely otherwise Indeed, it was July 3, 1979 that President Carter signed the first directive for secret aid to the opponents of the pro-Soviet regime in Kabul. And that very day, I wrote a note to the president in which I explained to him that in my opinion this aid was going to induce a Soviet military intervention.
Q: Despite this risk, you were an advocate of this covert action. But perhaps you yourself desired this Soviet entry into war and looked to provoke it?
B: It isn't quite that. We didn't push the Russians to intervene, but we knowingly increased the probability that they would.
It's a fascinating interview:
http://www.globalresearch.ca/articles/BRZ110A.html
I have often wondered why in all the years since Brzezinski made this stunning admission...(which got
very little press attention; I didn't even find out about it till a couple of years ago) that I have
never once seen a reporter interviewing TIC question him about this....
It's not like he's camera shy....