Semiconductor stocks made a comeback, lifting the S&P 500 and the Nasdaq Composite into positive territory Monday.