Stocks rallied on Thursday, with the S&P 500 erasing its March deficit and going positive for the month.