After losing tens of millions of citizens’ money on a green energy gamble, city officials are trying to escape their self-inflicted mess.