Apple and Tim Cook in particular have generally been on the side of user privacy, of sticking with encryption even when it's causing friction with law enforcement, but they have also unlocked phones and computers when compelled by a court order.
It stands to reason that they be forced to disclose personal information, that they may have to hand over cloud-hosted files, email, or messages, or unlock devices.
As far as I know Apple has never tapped into someone's system to retrieve information from the operating system. The equipment in question has always been in the immediate possession of law enforcement individuals.
This is a thorny issue, everyone's idea of "acceptable behaviour" varies considerably.
Plus, if in the future Apple is compelled by law to allow remote access to systems under certain circumstances, things will change considerably.