Under the Patriot Act, the government can now ask a federal court (the Foreign Intelligence Surveillance Court), if needed to aid an investigation, to order production of the same type of records available through grand jury subpoenas.
The Court's ruling effectively freed corporations and unions to spend money both on "electioneering communications" and to directly advocate for the election or defeat of candidates (although not to contribute directly to candidates or political parties).