The CEO of the tech giant defended Apple's position, saying the security of the public is far too important to risk.