The US Government is supposed to represent the people, and thus must uphold that people's values. The US government is a moral agent.
A person is a moral agent.
Though many here are happy to concede the reality that Apple is comprised of individuals and that it exists as an organisation as a part of society, and just view it as a profit-maximising entity. This is perverse. A corporation is a moral agent, and when it's morality conflicts with it's profits, morality should win. We'd expect nothing less of literally everybody/everything else.