Congress’s effort to block enforcement of the Department of Labor’s fiduciary rule failed late Wednesday evening amidst a raucous anti-gun “sit-in” on the floor of the House of Representatives.

An override of President Barack Obama’s veto of legislation to block the rule failed in a 239-180 vote at around 10 p.m., nearly 12 hours into Democrats’ protest against inaction on gun-control legislation.

“House Democrats were proud to sustain the president’s veto and defend the fiduciary rule that guards Americans’ retirement security,” said House Minority Leader Nancy Pelosi, D-Calif., in a statement on Wednesday. “Instead of wasting time on their special interest Wall Street agenda, Republicans should give the American people a vote on keeping guns out of the hands of suspected terrorists and criminals. No bill. No break.”

The DOL released final language of its fiduciary rule in April, binding advisors and representatives to act in their clients’ best interest when working within retirement accounts.

Rep. Phil Roe, R-Tenn., sponsored legislation to block the rule using the Congressional Review Act, which gives Congress the power to overrule federal regulations. That measure passed the House and Senate in May, but was vetoed earlier this month by Obama.

"There are nearly 40 million working families in this country who haven’t saved a dime for retirement. That's a serious problem, and President Obama and House Democrats have accepted a rule that will only make matters worse,” Roe said in a statement on Wednesday. “The American people need positive solutions that empower them to save more for retirement, not a fundamentally flawed rule that will restrict access to affordable retirement advice for those who need it most.”

After a roll-call vote that was interrupted by protest chants and songs, the House adjourned.

The challenge to the fiduciary rule now moves to the courts, where several lawsuits are pending.