When the Church of the Good Shepherd in Binghamton, N.Y., left the Episcopal Church over disagreements about what the Bible says about sexuality, the congregation offered to pay for the building in which it worshiped. In return the Episcopal Church sued to seize the building, then sold it for a fraction of the price to someone who turned it into a mosque.