USA's præsident har angiveligt fået besked fra Iran om, at tilbageholdte demonstranter ikke bliver henrettet.