I never was a fan of Carter, but it looks like you’re assuming that because mullahs took over Iran Carter must have wanted it that way. That implies a lot more competence and foresight in the man than he actually had.
Carter was an ideological animal. I don't assume that he was the brains. He was only animated from his twisted illogical liberal mindset, but his men and specifically Brzezinski knew damn well what he was doing. This was a leftist conspiracy to make up for their supposed "wrong" of the CIA by "installing" the Shah as well as protect ME from communist expansion. Look what they have done to the world now? If you read between the leftists' lines specially their elite journalists, they pretty much concede it ....begrudgingly.