Jimmy Carter used it to deny some Iranians entry to the U.S. during the hostage crisis, Ronald Reagan to bar Cubans who didn’t already have relatives here and President Obama to keep out North Korean officials.