Second, a random statement from Tim Cook, which itself is the subject of numerous forces and incentives, is hardly a strong case against the argument that, almost universally, corporations act to maximize profits (which, we as Americans, also often pretend is a universally pro-social motivator).
I'll also note that both of your sources focus on short-term profiteering (e.g. ignoring long-term benefits of renewable energy in favor of short-term profits), but are actually supportive of long-term investments, which are, of course, made with the purpose of increasing future profits (e.g. " it is [...] not corporate law [...] that [drives] so many of today’s public companies to myopically focus on short-term earnings; cut back on investment and innovation [...]" and "thinking in terms of long-term profit and returns is an important way of putting society’s resources to their best uses"). Focusing on long-term investments, in both cases, is obviously also motivated by profit (with the second arguing that long-term profits are actually a social good, which is the case only when compared with short-term profits).