Stocks rose and oil prices fell after reports that President Trump is open to ending the US military campaign against Iran despite the Strait of Hormuz remaining closed.