Gold prices surged to their highest level in three weeks as the US Supreme Court's decision to strike down President Trump's tariffs created significant market uncertainty.