Stocks close higher, helped by health care companies