The justices ruled that the tariffs issued under the International Economic Emergency Powers Act are illegal.