After years of emotional legal wrangling, a federal judge ruled on Tuesday that a member of a violent drug gang who killed two undercover detectives on Staten Island more than a decade ago will not face the death penalty.