This is incorrect.
(1) Religions are treated no differently than any other non-profit.
(2) No non-profit may endorse a particular candidate. They are free to comment on particular issues and policies and referenda.
A priest can say 'vote no on marijuana'. They cannot say 'vote yes to Mary Sue because she doesn't like marijuana'.