The North Carolina Senate passed legislation Thursday that mandates all North Carolina sheriffs cooperate with Immigration and Customs Enforcement, the federal agency that issues detainers to remove noncitizens who have been arrested for criminal activity.