It's also worthwhile to note that the FEC's argument included that there was no limiting principle to their power. They could ban a book if a single sentence advocated for a person or ban a union from hiring someone to write a book. It is completely unsurprising that SCOTUS ruled against unlimited cosmic power.