Two-thirds of councils say they can’t afford to comply with homelessness law