A former Massachusetts state trooper convicted of stealing overtime pay, lying on his taxes and cheating to get student aid for his son was sentenced Friday by a federal judge to five years in prison for his leadership role in the sprawling overtime fraud scheme.