The Supreme Court ruled on Friday that President Donald Trump's emergency tariffs are illegal, upending one of the president's key policies.