The Dow, S&P 500, and Nasdaq rose as the stock market digested a Senate vote that raises hopes for an end to the U.S. government shutdown.