The former second-in-command of a Massachusetts state police traffic safety unit was sentenced to three years in prison for his role in a widespread conspiracy to steal federally funded overtime through no-work shifts.