Stocks closed solidly higher on Thursday for the fourth straight session as investor optimism about the Trump administration continues to run high.