From the biggest cities to smaller towns, local officials wrote serious climate plans. One law at a time, state policy has narrowed the tools to carry them out.