The city of Boise faced global competition in a Bloomberg Philanthropies contest. Its plan to heat an affordable-housing complex impressed.