Other governments and ultimately the citizenry as a whole.
> if Apple cannot comply without endangering every iPhone owner, then the other owners of iPhones have a stake in the outcome
They do not. No more than owners of doors when the FBI executes a warrant.
> The government's right to investigate this crime doesn't expand to the right to endanger millions of people's privacy and security.
No plausible mechanism has ever been put forward where this would be the case.
> Libertarian philosophy doesn't suggest that you have a right to hurt other people, unless in self-defense.
Right, they attempted to coerce your staff on your premesis into acting against their own interests. This is a violation of the NAP and therefore any level of violence in self defence is justified.
This is one of the most core Libertarian beliefs.