Carter helped topple the Shah, got the hostage situation in return and STILL felt that he did the right thing in Iran.
The Shah was not popular in Iran. His days were numbered.