WASHINGTON — The House on Thursday rebuffed a furious lobbying campaign by the National Rifle Association and approved a revamped Violence Against Women Act that would expand law enforcement’s ability to restrict gun purchases by convicted domestic abusers.

The legislation passed easily, 263 to 158, but the divided vote came on what was once a broadly bipartisan measure first passed in 1994. In recent years, partisan rancor over efforts to expand the protections of the legislation have clouded efforts to renew it, and this year, the divide was over gun control.

The provisions would close the so-called boyfriend loophole and bar those under a restraining order or who were convicted of abusing, assaulting or stalking a domestic partner from buying guns. The N.R.A. seized on the new measures and warned Congress that it would track and publish how lawmakers voted, hoping to intimidate Republicans and Democrats in Republican-leaning districts.

“Do not let the N.R.A. bully you,” Representative Debbie Dingell, Democrat of Michigan, urged her colleagues before the vote, noting that her recently deceased husband, former Representative John Dingell Jr., also a Democrat, was a member of the organization.