The extraordinary subterfuge was aimed at protecting an American president who has been in Iran’s cross hairs for years.