A specialized federal court in New York delivered a new blow to President Donald Trump’s effort to impose widespread tariffs, ruling against the levies the president imposed after the Supreme Court decision in February that eliminated most of his emergency import taxes.