U.S. stocks were largely quiet during the session, but rose to end the day.