Senate Minority Leader Mitch McConnell announced his support Tuesday for his chamber’s emerging bipartisan gun agreement, boosting momentum for modest but notable election-year action by Congress on an issue that’s deadlocked lawmakers for three decades.

The Kentucky Republican said he hoped an outline of the accord, released Sunday by 10 Democrats and 10 Republicans, would be translated into legislation and enacted. McConnell’s backing was the latest indication that last month’s gun massacres in Buffalo, New York, and Uvalde, Texas, had reconfigured the political calculations for some in the GOP after years of steadfastly opposing even incremental tightening of firearms curbs.

“If this framework becomes the actual piece of legislation, it’s a step forward, a step forward on a bipartisan basis,” McConnell told reporters. He said the proposal “further demonstrates to the American people” that lawmakers can work together on significant issues “to make progress for the country.”

McConnell’s comments were striking, coming five months before midterm elections in which Republicans hope to win control of the Senate and seem likely to win a majority in the House. For years, GOP candidates could risk their careers by defying the views of the party’s loyal gun-owning and rural voters, who oppose moves seen as threatening their ownership and use of firearms.

McConnell seemed to suggest that backing this gun measure wouldn’t doom some Republicans’ prospects in November. While he said senators should take a position “based upon the views of their states,” he said Sen. John Cornyn, R-Texas, a chief architect of the deal, presented GOP polling data at a closed-door senators’ lunch saying support among gun owners for the agreement’s provisions is “off the charts, overwhelming.”

The plan would for the first time make the juvenile records of gun buyers under age 21 part of required background checks. Money would be sent to states for mental health and school security programs and for incentives to enforce local “red flag” laws that let authorities win court approval to temporarily remove guns from people considered dangerous.

Senators and aides hope to translate their broad agreement into legislation in days, in hopes that Congress could approve it before leaving for its July 4 recess. Both sides acknowledge that is a difficult process that could encounter disputes and delays.

Some Republicans expressed unhappiness with the plan Tuesday, with much of the criticism aimed at its encouragement of “red flag” laws. Nineteen states mostly dominated by Democrats and the District of Columbia have them, but Republicans have blocked efforts in Congress to pass federal legislation on the subject.

Representative Kevin Cramer (R-ND) speaks at the 2018 North Dakota Republican Party Convention in Grand Forks, North Dakota, U.S., April 7, 2018. Picture taken April 7, 2018. The party endorsed him for the U.S. Senate race against Democratic Sen…

Representative Kevin Cramer (R-ND) speaks at the 2018 North Dakota Republican Party Convention in Grand Forks, North Dakota, U.S., April 7, 2018. Picture taken April 7, 2018. The party endorsed him for the U.S. Senate race against Democratic Sen…

“If we’re not going to pass a federal red flag law, and we shouldn’t, why would we incentivize states to do something that we think is a bad idea?” said Sen. Kevin Cramer, R-N.D.

A final agreement on overall legislation would be expected to receive solid support from Democrats. But it would need at least 10 GOP votes to reach the Senate’s usual 60 vote threshold, and McConnell’s praise raised hopes that Republican backing would grow even beyond that.

Approval seems likely by the Democratic-run House, where Speaker Nancy Pelosi, D-Calif., has praised the measure as a first step toward strong restrictions in the future.

Senate Majority Leader Chuck Schumer, D-N.Y., said he would schedule votes on the legislation as soon as it is ready. He contrasted recent days’ progress with Congress’ failure to act after a parade of mass shootings in recent decades.

“After Uvalde and Buffalo, perhaps this time could be different. To many senators on both sides, this debate certainly feels different,” Schumer said.

Congress’ last major gun measure was an assault weapons ban that took effect in 1994 but expired 10 years later.