Supreme Court justices from both sides of politics were sceptical about the emergency powers used to impose tariffs.