Democratic congressional leaders say they hope President Donald Trump has learned a lesson that government shutdowns don’t work.

Senate Democratic leader Chuck Schumer also said Trump learned another important lesson after repeatedly clashing with House Speaker Nancy Pelosi during a 35-day partial government shutdown. Schumer says: “No one should ever underestimate the speaker, as Donald Trump has learned.”

Schumer and Pelosi say Democrats stayed united throughout the five-week shutdown and eventually persuaded Trump to reopen the government temporarily.

Trump agreed Friday to fund the government through Feb. 15 while negotiations continue on his demand for a border wall with Mexico.

Schumer says Trump agreed to end the shutdown because “he knew that it was a lost cause.”

Pelosi says Democrats’ “unity is our power. And that is what maybe the president underestimated.”