Hi, u/soorow,
You may be interested in this post, "why did israel support iran in the iran-iraq war and when did the mutual hate ensue?" Despite the title, the reply does go into both Israel and the United States. It discusses the Soviet Union to a lesser extent, so I hope someone else can provide detail on that.