Cash-strapped cities are battlegrounds for clean energy