Virginia Gov. Ralph Northam's push to ban the sale of assault weapons has failed after members of his own party balked at the proposal.

Senators voted to shelve the bill for the year and ask the state crime commission to study the issue, an outcome that drew cheers from a committee room packed with gun advocates.

Four moderate Democrats joined Republicans in Monday's committee vote, rejecting legislation that would have prohibited the sale of certain semiautomatic firearms, including popular AR-15 style rifles, and banned the possession of magazines that hold more than 12 rounds.

Download the new Independent Premium app Sharing the full story, not just the headlines

The bill was a top priority for Northam, a Democrat who has campaigned heavily for a broad package of gun-control measures.

The legislation also engendered the biggest pushback from gun owners and gun-right advocates, who accused the governor and others of wanting to confiscate commonly owned guns and accessories from law-abiding gun owners. Northam has said repeatedly he does not want to confiscate guns, but argued that banning new sales of assault weapons and high-capacity magazines would help prevent mass murders.

Virginia is the current epicenter of the country's heated debate over gun control and mass shootings. Tens of thousands of gun-rights activists from across the country flooded the state Capitol and surrounding area in protest, some donning tactical gear and carrying military-style rifles.

Days before the rally, the FBI arrested a group of alleged white supremacists who were accused of planning to infiltrate the protest. They were allegedly caught saying they hoped the rally would cause 'civil war'.

Northam has been able to get much of his gun-control agenda passed this year, but struggled with the proposed assault weapon ban. Earlier proposals to ban possession of AR-15-style rifles or to require owners to register them with state police have been scrapped. The governor had hoped a watered-down would win over enough Democratic moderates for passage.

An estimated 8 million AR-style guns have been sold since they were introduced to the public in the 1960s. The weapons are known as easy to use, easy to clean and easy to modify with a variety of scopes, stocks and rails.

Lawmakers in both the House and Senate have already advanced several other gun-control measures and should finalize passage in the coming days. Those bills include limiting handgun purchases to once a month, universal background checks on gun purchases, allowing localities to ban guns in public buildings, parks and other areas, and a red flag bill that would allow authorities to temporarily take guns away from anyone deemed to be dangerous to themselves or others.