A driver involved in fatal crashes during a car rally in New Jersey has been sentenced to 25 years in prison. He pleaded guilty to charges related to the deaths of two people.