I've been in the Church for several decades. I've heard of LDS fundraising efforts for political causes twice (never in regular Church meetings) in my ward or stake. I find it hard to imagine how anyone could imagine that that is 'substantial'.
Well that is the rub. Maybe sometime when I get some time I will see if the Treasury Regulations define the word "substantial" that is found in 501(c)(3). It may be fund to see if there is any case law on the issue.
Never the less,while the LDS Church's activity over prop 8 is substantial as compared to its overall mission and other NFP qualifying activities can be argued it is a fact that there was a concerted organized effort by the Church to influence this legislation. It was not a simple grass roots effort at all by a few members. It came from the top down. Bishops pressured members to donate, ward phone lists were used to solicit funds, top leadership gave a satellite broadcast with instructions on this issue, comments were made from the pulpit, members who did not want to support it were at times marginalized. One can argue whether this was right or wrong. But there was a concerted and organized effort.