Gold futures settle higher, eke out slight gain for the week