U.S. stocks rise on Iran deal and lower oil