The state inspector general said local officials need to be better protected against the type of energy-savings contracts that caused a years-long dispute between Quincy and Honeywell International and ended in a $4 million settlement payment to the city.