Former Suffolk County District Attorney Thomas Spota and his former anti-corruption unit chief, Christopher McPartland, were each sentenced to five years in prison Tuesday, more than 18 months after they were found guilty of obstruction of justice, witness tampering and other offenses.