WASHINGTON — As he conducts a high-profile good-will visit to New York this week, Iran’s new president, Hassan Rouhani, says he is bringing a simple message of peace and friendship. But on Wednesday, Mr. Rouhani set off a political storm here and in Iran, with an acknowledgment and condemnation of the Holocaust that landed him in precisely the kind of tangled dispute he had hoped to avoid.