Cities and towns may expend public funds to procure liability insurance covering their officers, agents, and employees while employed in governmental or proprietary capacities.