If political stances are taken by the PR/marketing department in isolation, they risk finding the company's actions in contradiction of its words.
But those people who know better would say that it is the job of the PR department to coordinate the internal discussions regarding a company's political stance with the appropriate decision makers (which might include the CEO and board but would not include HR, or any of the other departments you've mentioned), and to coordinate the disclosure, dissemination, and followup of said stance once the decision-makers have weighed in.
And yes, in most companies, it is the PR department that determines the company's political stance, not the CEO, because the the people in the PR department have a much better understanding of the consequences, because it's literally their job to understand this stuff. In that respect, they are no different than than Legal or Accounting departments.
And like the Legal and Accounting departments, when it comes to PR issues, the head of PR gets to tell the CEO what to d. (This doesn't mean the CEO will actually do that, see Elon Musk, but at the overwhelming majority of companies the CEO will trust the expert.)
And yes, in most companies, it is
the PR department that determines
the company's political stance
Do you imagine Apple's PR department gets to decide whether Apple's iphone production buys Chinese-made components?I can assure you, it is not within the power of the PR department to make that decision.
And yes, now that China is a political issue, you can bet that the PR department is involved in the decision to buy Chinese-made components and the COO will take their advice into strong consideration, since they're the ones that will be explaining the decision to society, and their choice of logistics structure could affect their future logistics mobility.
Which makes this headline framing by the LA Times even more upsetting. I mean, yes, it's a PR disaster, but even in context that's not the important fact to convey here. They're dealing with outrage because of an expressly political act they took, not merely a mistake in the management of "Public Relations".