US stocks close Thursday higher