White House Deputy Press Secretary Hogan Gidley pushed back on accusations Saturday that President Trump "caved" to Democrats on the issue of border security.

As Fox News reported, Trump signed a spending bill Friday that ended the longest partial government shutdown in the country’s history and will also keep the government open until Feb. 15.

After Trump announced the deal, he received criticism by some who said he'd given in to the opposing party.

Gidley said on Fox & Friends that Trump didn't cave and, in fact, stood up for the American people.

He added that rank-and-file Democrats came to the administration saying that their views were dissimilar to party leaders Nancy Pelosi (Calif.) and Charles Schumer (N.Y.)

'Selfless Service': Wounded Afghanistan Vet Helps Colin Powell Fix Flat Tire

Chaffetz: Short-Term Spending Bill Was a 'Pretty Savvy Move' By Trump

"When we heard that, we realized the dam was beginning to break on the Democrat side, and we could get something accomplished," he said. "That's why the president decided to open the government and pay those hardworking federal employees."

Following the announcement of the deal Friday, Schumer said that he hopes Trump "has learned his lesson."

Gidley responded by saying he hopes Democrats have learned a lesson of their own, that they can't simply not negotiate.

"They can't offer nothing and expect something to get done," he said. "While the government was shut down, Democrats -- talk about tone deaf. ... They weren't doing anything on behalf of the American people."

He also said the declaration of a national emergency is still an option on the table if a new spending deal cannot be reached by Feb. 15.

"The president has taken nothing off the table. ... We are where we are because Democrats refuse to negotiate," he said.

Gidley also noted that he wasn't aware of any conversations had between Trump and Pelosi regarding the State of the Union address.

House Speaker Nancy Pelosi signaled to President Trump in a letter Wednesday that she will not allow him to deliver his scheduled address from the House floor.

"The president needs to take that message directly to the American people without the filter of political pundits and Beltway bureaucrats and definitely not the speaker of the House," Gidley said.

Sen. Cassidy: Pelosi's Opposition to Trump on Border Security Is a 'Sorry State of Affairs'

NY Bishop Calls Out Cuomo Over State's New Abortion Law: 'It Goes Way Beyond Roe vs. Wade'

'It Was Just a Show': Dershowitz Says Stone's Arrest Was to Get Info on 'Real Target' Pres. Trump