In a case involving the intersection of technology, privacy rights and law enforcement, the state Supreme Court ruled 4-3 that neither federal nor state laws protected a former Essex County sheriff's officer, accused of texting and calling the target of a state narcotics investigation on ways to allude apprehension, from disclosing the pass codes to his iPhones.