Gold ends higher after two-session drop to 9-month lows