Iran’s leaders are playing up the positives — an underdog proved capable of taking on two nuclear-armed powers.