Since 1954, an IRS rule had barred houses of worship from explicitly endorsing political candidates.