The major U.S. stock averages ended Monday's session with solid gains.