With federal dollars, cities want to leverage heat from waste sources and the ground to move buildings away from burning fossil fuels on-site.