Helping to overthrow Iran, certainly made them like the USSR even more. Kinda weird.
We kept Iran out of the USSR’s orbit for several decades, during which it was a good ally and an oasis of pro-Western sanity in a screwed up part of the world. If Carter had made better decisions, that might still be the case.