He and Nancy Pelosi must have had the same religion teachers. Here he is in the Christian Science Monitor:
There are elements within the church who say that if you are at odds with any of the teachings of the church, you are at odds with the church. I think the church is bigger than that.