Apple has seldom shied away from spearheading consumer privacy, often butting heads with law enforcement and federal officials in the process.