President Trump said the United States and Iran had “largely negotiated” an agreement, but American and Iranian officials described the terms differently.