It's not a matter of banning political speech, but churches can't endorse a political candidate or a political party? That's contradictory thinking.

Speaking out on a social issue is social advocacy, as is organizing congregants to vote. Political advocacy is about politics, and churches in the USA are banned from expressing their political opinions in that area. That's an infringement on freedom of speech, etc.