A lease agreement with the city of Sacramento let encampment residents stay indefinitely while they sought permanent housing.