The US Supreme Court declared Trump-era tariffs illegal, leaving the complex process of refunding billions to importers uncertain and potentially mired in legal battles.