The prosecution rested Monday in the trial of Lindsay Clancy, the Massachusetts mother accused of murdering her three young children, after calling dozens of witnesses who testified about her mental health struggles, psychiatric treatment and behavior around the time of the killings.