(NewsNation) — U.S. Senators passed bipartisan gun legislation Thursday night, in a move to show the country it is willing to act quickly in the wake of mass shootings in Buffalo and Uvalde.

The Senate passed the bill 65-33, getting the 60 votes necessary in the evenly divided body. It will now move to the House.

Senators came to a bipartisan agreement on the 80-page gun bill earlier this week, voting 64-34 to advance the bill. Thursday’s procedural vote will prevent a filibuster from possibly blocking the legislation from moving to the House.

The legislation would toughen background checks for the youngest firearms buyers, require more sellers to conduct background checks, and beef up penalties on gun traffickers. It also would disburse money to states and communities to improve school safety and mental health initiatives.

The legislation would also prevent people convicted of domestic abuse, but are not married to their partners, from owning a firearm.

Aides told The Associated Press the move would cost $15 billion.

U.S. Senate Majority Whip Dick Durbin (D-IL) released the following statement:

This Senate just accomplished what hasn’t been possible in decades—passing bipartisan legislation that makes our nation safer from gun violence.  To be clear: this bill doesn’t have everything I want, but it is a meaningful bipartisan compromise that will help reduce shootings and expand mental health care. 

Now that this legislation has passed the Senate, I urge the House to pass it swiftly so it can become the law of the land and help save lives.

Thoughts and prayers and action.  To all the families across America who mourn the loss of a gun victim, this bill offers more than sympathy—it offers hope.  Let’s make this the beginning, not the end, of this lifesaving bipartisan dialogue.

The Associated Press contributed to this report.