U.S. stocks rallied to fresh highs as hopes for a U.S.-Iran truce pushed oil prices lower and boosted investor sentiment.