(CNN) The Senate passed Thursday a massive budget deal that would stave off the looming threat of a potential default on US debt and prevent automatic spending cuts to domestic and military funding.

The a final vote was 67-28 and the bill will now go to President Donald Trump for his signature.

The vote followed days of grumbling from GOP senators about the cost of the package and uncertainty surrounding who will support it.

The agreement, negotiated between congressional leaders and the Trump administration, represents a significant bipartisan compromise but the vote in the GOP-led Senate has proven slightly tougher than some expected among Republicans.

In floor remarks ahead of the vote, Senate Majority Leader Mitch McConnell called the proposal "a strong deal."

Read More