Two communities seeking cleaner, cheaper energy are resisting pressure to extend deals that bind them to getting power from one of the nation’s dirtiest plants.