WASHINGTON — The House passed legislation Friday to revive a ban on certain semi-automatic guns, the first vote of its kind in years and a direct response to the firearms often used in the crush of mass shootings ripping through communities nationwide. Once banned in the U.S., the high-powered firearms are now widely blamed as the weapon of choice among young men responsible for many of the most devastating mass shootings. But Congress allowed the restrictions first put in place in 1994 on the manufacture and sales of the weapons to expire a decade later, unable to muster the political support to counter the powerful gun lobby and reinstate the weapons ban. Speaker Nancy Pelosi pushed the vote toward passage in the Democratic-run House, saying the earlier ban “saved lives.” President Joe Biden hailed the House vote, saying, “The majority of the American people agree with this common sense action.” He urged the Senate to “move quickly to get this bill to my desk.” However, it is likely to stall in the 50-50 Senate. The House legislation is shunned by Republicans, who dismissed it as an election-year strategy by Democrats. Almost all Republicans voted against the House bill, which passed 217-213. The bill comes at a time of intensifying concerns about gun violence and shootings — the supermarket shooting in Buffalo, N.Y.; massacre of school children in Uvalde, Texas; and the July Fourth shootings of revelers in Highland Park, Ill. Voters seem to be taking such election-year votes seriously as Congress splits along party lines and lawmakers are forced to go on the record with their views. A recent vote to protect same-sex marriages from potential Supreme Court legal challenges won a surprising amount of bipartisan support. Biden was instrumental in helping secure the first semi-automatic weapons ban as a senator in 1994. The Biden administration said that for 10 years, while the ban was in place, mass shootings declined. “When the ban expired in 2004, mass shootings tripled,” the statement said.