U.S. equity markets showed mixed signals as investors weighed the potential economic benefits of the Iran peace agreement against uncertainties about implementation and geopolitical risks.