No it is not against the law to get into politics in church.
It is against the law to endorse a particular candidate. That’s all.
Unless you happen to be Black or a Democrat.