A ruling against Trump on tariffs would deliver his biggest legal defeat since returning to the White House