WASHINGTON — On Wednesday, for the first time in a generation, the U.S. House is poised to pass new gun control legislation.

That a pair of new bills are even getting a vote reflects a confluence of events, including a newly empowered House Democratic majority, the apparently diminishing clout of the National Rifle Association, and the activism of a generation of young Americans following years of deadly school shootings.

Democratic leaders say they have the votes to pass a bill requiring background checks on all commercial gun sales, including those at gun shows and over the Internet. The bill also has five Republican co-sponsors, led by New York Rep. Peter King, who had tried — and failed — for several years to advance the bill while his party controlled the chamber.

Democrats taking control of the House has "really given it momentum. Hate to admit that, but that's the reality," King said in an interview with NBC News.

But other Republicans contend the legislation would not have prevented some mass shootings and that it will ultimately threaten the rights of legal gun owners.

"If they were to pass and become law," Rep. Liz Cheney, R-Wyoming, said at a news conference Tuesday, there would be "a situation where they couldn't be enforced, ultimately, without a federal gun registry."

"We're talking about the person who is a criminal, the person who has a history of mental illness," he said, noting his party is out of step even with most gun owners.

Since the bill faces a steep uphill fight in the Republican-run Senate, House leadership arranged a separate vote — a day later on Thursday — on a more modest measure that may be able to attract greater bipartisan support.

That bill would close the so-called "Charleston Loophole," which allows the sale of a firearm to proceed if a background check is not completed within three days. It's a loophole that allowed Dylann Roof, who in 2015 murdered nine people at the Emanuel AME Church in Charleston, South Carolina, to obtain his weapon. Had the FBI background check been completed, he would have been blocked because it would have been revealed he had previously admitted to drug possession.

The effort to close that loophole is the first test of the new Democratic leadership's ability to advance a few modest legislative goals capable of garnering bipartisan support in both chambers of Congress, aides say.

In the Senate, Democrats are hoping to pressure Republicans including Tim Scott of South Carolina and Cory Gardner of Colorado — another state rocked by mass shootings — to align themselves with the measure and lean on McConnell to bring it for a vote.

President Trump has vowed to veto the current legislation, and many advocates remain skeptical that Senate Majority Leader Mitch McConnell, R-KY, will bring it up for a vote.

The two bills represent the first gun safety efforts expected to pass the House since the Brady Handgun Violence Prevention Act of 1994 mandated federal background checks on firearms purchases in the U.S.

Much has changed in the world of gun sales since then — the law passed prior to the dawn of the Internet and doesn't cover sales over the Internet and at gun shows, meaning there are gaping holes in the nation's legal gun purchasing system.

While the current divided Congress make it unlikely that any significant gun safety efforts will pass anytime soon, advocates say it's an effort worth making.

"At least one body of Congress is willing to do what many Americans are asking for … and then build towards bold policies that we really need to reduce gun deaths," said Igor Volsky, executive director of Guns Down America, a grassroots advocacy group that says it is "taking on" the National Rife Association.

The 2018 midterm election marked a turning point or sorts, with pro-gun control groups increasing their political muscle.

For the first time, groups like Everytown for Gun Safety and GiffordsPAC, founded by former Arizona Democratic Rep. Gabby Giffords, who was shot and seriously wounded by a would-be assassin in 2011, spent at least $13 million at the state and federal level in the midterms.

That figure is $2 million more than gun rights groups including the N.R.A. spent, according to the Center for Responsive Politics.

Television ads run by Everytown for Gun Safety highlighting the need for tougher gun laws increased 22 fold from four years ago, according to a Wall Street Journal analysis. In tossup House races, 93 percent of gun-related ads favored stricter gun measures, the Journal analysis found.

Many of the candidates who ran openly on a platform to curb gun violence won, even in traditionally Republican areas like in Texas. For instance, of the 307 federal and local candidates Giffords endorsed, 256 were victorious. They also include new members like Lucy McBath of Georgia, who lost her son, Jordan Davis, in 2012.

Activist say that broad public support for broadening background checks, with 90 percent approval in Gallup and other major polls, along with the coming of age of a generation of children born into a culture of school shootings that began with the 1999 massacre at Columbine High School in Littleton, Colorado, has shifted the activism intensity to the side of gun control.

Sam Zeif, a 19-year-old whose friend was among the 14 children murdered in the mass shooting in Parkland, Florida last year, said the school's students and parents created new gun safety groups including March for our Lives and Change the Ref. to hold town halls, arrange demonstrations, call congressional offices and arrange petitions while coordinating with parents from Columbine and Sandy Hook in Newtown, Connecticut, where 20 children as young as six lost their lives in 2012.

"It wouldn't be the same without everyone's contribution," Zeif told NBC News. "Somebody had to do it. It just happened to be us," he said.

Sponsors of the legislation being voted on Wednesday also credited activism by the Parkland students as a critical factor in building momentum. "It's the accumulation of tragedies over the years, personified by Parkland," said King.

"Every day there's a group of young people up here campaigning for expansion of background checks," added Rep. Mike Thompson, a California Democrat who is co-sponsoring the broad background check bill.