Stocks rallied across the board on Thursday.