Congregations with underutilized houses of worship are trying to convert them to affordable housing or homeless shelters. There are significant challenges.