Stocks closed higher in choppy trade, shrugging off a sharp decline in health care stocks following remarks made by Donald Trump.