The potential to upset a long-standing , if shaky balance over regulating political speech created a frenzy of cockeyed alliances among groups normally at odds , and spawned nearly four dozen legal briefs in connection with the case the court ruled on Thursday .