President Joe Biden signed the $1.2 trillion spending package to avert a partial government shutdown on Saturday, hours after the Senate approved it in an early morning vote.

Biden said the deal "represents a compromise, which means neither side got everything it wanted," but added that it is "good news for the American people."

"But it rejects extreme cuts from House Republicans and expands access to child care, invests in cancer research, funds mental health and substance use care, advances American leadership abroad, and provides resources to secure the border," he said in a statement released by the White House.

The Senate approved the package on a 74 to 24 vote.

The House passed it by a vote of 286 to 134 on Friday.

The president said Congress' work is not done yet.

"The House must pass the bipartisan national security supplemental to advance our national security interests," he said in the statement.

"And Congress must pass the bipartisan border security agreement - the toughest and fairest reforms in decades - to ensure we have the policies and funding needed to secure the border. It's time to get this done," he said.

A bipartisan border deal fell apart last month after Senate Republicans came out in opposition to the legislation despite months of bipartisan negotiation.