

My assumption is that that’s gonna get thrown out because they don’t have standing. Probably some kind of case law along those lines already, since I figure someone’s probably tried that before.
googles
Looks like it.
https://en.wikipedia.org/wiki/Juliana_v._United_States
Juliana, et al. v. United States of America, et al. is a climate-related lawsuit filed in 2015 by 21 youth plaintiffs against the United States and several executive branch officials. Filing their case in the United States District Court for the District of Oregon, the plaintiffs, represented by the non-profit organization Our Children’s Trust, include Xiuhtezcatl Martinez, the members of Martinez’s organization Earth Guardians, and climatologist James Hansen as a “guardian for future generations”.
They call for the government to offer “both declaratory and injunctive relief for their claim—specifically, a declaration of the federal government’s fiduciary role in preserving the atmosphere and an injunction of its actions which contravene that role.”
In January 2020, a Ninth Circuit panel dismissed the case on the grounds that the plaintiffs lacked standing to sue for an injunction.
Legal actions to affect climate change by federal and state-level governments have been attempted since the 1990s; one of the first known cases was led by Antonio Oposa, a Philippine lawyer that represented a class-action suit of 43 students against the Philippine government to protect a forest surrounding their village.
Since 2011, Our Children’s Trust has been filing various state and federal lawsuits on behalf of youth, though most of these have been dismissed by courts, as courts generally have not ruled that access to a clean environment is a right that can be litigated against.[8][5][6] Such cases are also generally dismissed as lawsuits cannot be initiated by “generalized grievances”, and require plaintiffs with standing to sue and can demonstrate concrete harm that the government has done, and that the courts can at least partially redress the harm by order of the court.[9] Further, cases cannot be brought to court if they deal with a “political question” which cannot be resolved by actions of Congress and the President.[9]
The “political question” bit should be inapplicable, since this is a company, but the lack of standing to sue for climate change probably does apply.
I assume that this is a crowd-pleaser by the California executive, that they expect it to get tossed out but want the political points.
So, first, that text is from the Declaration of Independence, not the US Constitution, which defines legal rights.
But, secondly, the right to “pursuit of happiness” needs to be understood in the (somewhat euphemistic) language of the time. It is generally understood as referring to a right to property; this right was a core dispute in the American Revolution, and mirrors a nearly-identical “life, liberty” phrase from John Locke where the term used is explicitly “property”. That is, the right is not to never feel unhappy or depressed, but rather to not have one’s property taken away by non-elected parties.
https://www.crf-usa.org/foundations-of-our-constitution/natural-rights.html
The Tea Act, which imposed taxes on American colonists, was a critical dispute in the American Revolution:
https://en.wikipedia.org/wiki/Tea_Act
At the time, it was generally accepted that in England, only elected officials had the power to tax; this is one of the rights of Englishmen.
https://en.wikipedia.org/wiki/Rights_of_Englishmen
However, American colonists had no elected MPs in Parliament. Parliament was willing neither to grant them elected MPs, nor to refrain from taxation and have locally-elected legislatures perform taxation. Parliament’s counterargument was that Americans had “virtual representation”, in that MPs elected by people in the UK – though not elected by American colonists – had their best interests at heart.
https://en.wikipedia.org/wiki/Virtual_representation