As cash-strapped councils descend into crisis, tough questions are being asked about law and governance