The blockbuster federal court ruling that halts President Donald Trump from imposing some of his most sweeping tariffs rests in part on a legal theory that conservative groups repeatedly used at the Supreme Court to block former President Joe Biden’s agenda.