SACRAMENTO — Just four days after the inauguration of President Donald Trump, California Gov. Jerry Brown on Tuesday delivered a rousing State of the State speech that asked Californians to persevere through uncertain times.

Related Articles Text of Jerry Brown’s State of the State: ‘When California hurts, America hurts’ “California is not turning back. Not now, not ever,” he said to a standing ovation of lawmakers gathered in the Assembly chambers. “His truth is marching on.”

The address, alternately defiant and hopeful, hit on threats to climate initiatives, Californians at risk of deportation, the state’s health care system and Planned Parenthood, while holding up federal infrastructure investment as one possible area of common ground with the Trump administration.

The governor also held out an olive branch to the state’s political minority, saying “Republicans represent real Californians too.” He urged state lawmakers to go “beyond party and act as Californians first.”

Noting that Trump had proposed a $1 trillion investment in public works, Brown said, “And I say: Amen to that, man! Amen to that!” California has roads, tunnels, railroads “and even a dam the president could help us with.”

The speech held special significance this year in a bluer-than-blue state where Democratic leaders have been preparing for a protracted war with Washington — and bracing for a repeal of the Affordable Care Act and challenges to the Golden State’s progressive policies on everything from the environment to immigration to marijuana.

Brown began by flexing California’s muscles, touting the state’s sheer size and economic power and noting that one in eight Americans lives here — the main reason Hillary Clinton beat Trump by nearly 3 million votes in the popular count despite his victory in the electoral college.

“When California does well, America does well. When California hurts, America hurts,” he said. “And when we defend California, we defend America.”

Reading this on your iPhone or iPad? Check out our new Apple News app channel here and click the + at the top of the page to save to your Apple News favorites.

At least until Tuesday, the governor had been more cautious in his post-election commentary than many other Sacramento Democrats. Still, he picked an attorney general he described as “battle-tested” to protect California’s policies. Xavier Becerra — a former Southern California congressman and Stanford alum — was sworn in Tuesday to replace Kamala Harris, who was elected to the U.S. Senate to replace Barbara Boxer.

Brown last month also delivered an instantly famous line to 3,000 scientists, vowing that California will “launch our own damn satellite” if Trump — who has called climate change a “hoax” — turns off satellites collecting data on climate change, as some environmentalists fear.

On Tuesday, Brown said: “We cannot fall back and give in to the climate deniers. … We need to live in the truth.”

Digging into history as he often does to drive home his point, Brown quoted “Hugo Grotius, the famous Dutch jurist (who) said long ago, `Even God cannot cause two times two not to make four.'”

A number of lawmakers interviewed after the speech agreed that it was important for Brown to underscore the need to rely on science and facts when shaping public policy. The governor took aim at what he called the “bald assertion of `alternative facts'” presented by the new federal administration, said Senate Majority Leader Bill Monning, D-Carmel, but “he did it in a respectful manner. It was a call to all Californians and all Americans.”

The specter of losing billions in federal funding for health care if the Affordable Care Act is gutted without a viable law to replace it looms large over the state. Experts estimate that California relies on $20 billion or more per year in federal funding for private insurance subsidies and greatly expanded Medi-Cal coverage. Congress has pledged to “repeal and replace” Obamacare, but the Republicans haven’t united behind any replacement plan.

Brown on Tuesday said that if the federal support it received for Obamacare is “taken away, our state budget would be directly affected — possibly devastated.”

He also drew applause with support for Planned Parenthood, a reproductive health organization that congressional Republicans have vowed to strip of federal funding because it performs abortions — a line that was not in his prepared remarks.

But California also has some homegrown problems with which to contend — most recently a budget shortfall that only recently came to light because of Medi-Cal budgeting errors totaling roughly $1.8 billion.

The governor announced a shortfall of $1.6 billion in his January budget proposal for 2017-18, red ink he blamed on lower-than-expected revenue and higher-than-expected Medi-Cal costs. Department of Finance spokesman H.D. Palmer said last week that budget mistakes — “a straight-up error in calculation” — double-counted savings in the state’s Coordinated Care Initiative.

The possibility of other errors in such a complicated budget is possible, Palmer said, but quickly added: “We don’t anticipate anything else of this magnitude — certainly not.”

Some lawmakers noted that Brown’s speech was short on policy details, from tax reform to affordable housing. Instead, the address looked back at Democrats’ accomplishments of the past seven years — a list that included minimum-wage increases and climate-change victories. But it didn’t lay out many specific proposals for the future besides staying the course.

But some Republicans worried that his speech continued to pit California against Washington.

“The bottom line is California has promised too many benefits to too many people,” said Assemblyman Travis Allen, a Republican from Huntington Beach. “Picking fights with the new Trump administration will do nothing to solve that problem. California has a lot to lose with this inflammatory rhetoric.”

But there was bipartisan consensus on one point: The address was powerful. Assembly Republican leader Chad Mayes, of Yucca Valley, said it was “fantastic,” one of Brown’s best — though he disagreed with the message.

It was “vintage, classic Brown,” said Assemblyman David Chiu, D-San Francisco. “It was electrifying.”