U.S. stocks ended the day higher, adding to last week's rally, which was the biggest advance since June.