This is also what the law says if they want to keep their tax-free filing: https://en.wikipedia.org/wiki/Johnson_Amendment
It would be impossible to draw the line at "politics", because of course basically everything can be considered "political". If they want to endorse a specific candidate, that's fine, but then they should pay taxes like the rest of us.