It's a violation of their constitutional rights. It's also government interference with the church, which is violating the churches constitutional guarantees of non- interference by the state.
So we agree, pastors should be able to say whatever they want political or otherwise.