US stocks gain 1% as markets shrug off Iran threat