Gold futures settle higher after declining over the past two sessions