A major ruling Thursday by the U.S. Supreme Court could change how presidential and congressional elections are funded, possibly opening the floodgates of money from corporations, unions and other groups.

The ruling is a blow to activists who have tried to limit the role of special interests in American politics.