The former music pastor was convicted of murder in his wife’s killing, which prosecutors said he committed while having an affair.