The Supreme Court ruling is a major blow to Trump, whose economic and foreign policies leaned on his asserted power to unilaterally slap tariffs on any country.