The vote caps a months-long saga in which two Select Board members were accused of creating a toxic work environment.