US stock exchanges close higher