Rep. Matt Gaetz of Florida was the target of a scam in which he was promised a presidential pardon in exchange for the payment of as much as $25 million to help free an American who had been taken prisoner in Iran, according to a person familiar with the matter.