Safe-haven gold surpassed $3,000 for the first time Friday, boosted by uncertainty over US President Donald Trump's tariffs, while stock markets gained on hopes US lawmakers will avert a government shutdown.