Under the measure, lawmakers that refuse to comply would be fined $5,000 for the first offense and $10,000 for a second offense.

The new rule comes in the wake of the Jan. 6 assault on the Capitol.

House Speaker Nancy Pelosi, D-Calif., said in a statement Tuesday that days after the attack, “many House Republicans began disrespecting our heroes by refusing to adhere to basic precautions keeping members of our congressional community safe — including by dodging metal detectors, physically pushing past police, and even attempting to bring firearms into the chamber.”

“It is beyond comprehension why any member would refuse to adhere to these simple, commonsense steps to keep this body safe,” Pelosi said.