A federal court has ruled against the new global tariffs President Donald Trump imposed after a stinging loss at the Supreme Court.