The law limits how much unions and other groups can spend on political advertising in the year before a scheduled election campaign.