The Supreme Court could soon rule whether President Donald Trump’s tariffs are legal—a decision that will have far-reaching implications on the extent of the president’s powers.