Towns and cities can refuse to sign contracts with fossil fuel or nuclear weapons companies. In some states, this requires a “home rule petition” to get permission from the state to bypass lowest bidder regulations. See successful example of this below from Northampton, Massachusetts: