S&P 500 gains 0.9% as Strait of Hormuz deal eases Fed jitters