US court rules many of Trump's global tariffs are illegal