Lawyers have warned Edinburgh City Council it is committing a criminal offence by paying operators who don't comply with health and safety licensing requirements, but camaigners say the move will come at a cost to the homeless.