Local officials had cut off electricity, which powers heating in the encampment, citing zoning and building code violations.