Churches and other religious or secular tax-exempt organizations have the right to free speech just as much as individuals and businesses, and as a result they should be able to participate in political campaigns without losing their privileged tax status.
Tax exempt organizations — whether they’re churches or not — shouldn’t be able to get involved in political campaigns and endorse candidates while maintaining their tax exempt status. It’s inappropriate to mix politics with religious institutions.