Gold ends higher, shakes off 3-week lows as investors await Fed meeting outcome