Triumphant in trade talks, Trump and his tariffs still face a challenge in federal court