It allows them because of a court case that said they can't take them down unless they can provide shelter, and they've refused to build enough shelter space.
The supreme court invalidated that decision, and so now they are allowed to tear the tent cities down again without having to actually find people shelter space. I imagine a lot of these encampments are going to be torn down (which will just cause them to relocate until they end up at a place where no one cares).