gold ends higher, shakes off 3-week lows as investors await fed meeting outcome