Gold snaps three-day rally as Trump, lawmakers reach debt-ceiling deal