WASHINGTON (Reuters) - The U.S. House of Representatives on Wednesday passed a bill that would expand background checks for gun sales to include firearm purchases at gun shows and over the internet, a measure likely to face Senate and White House opposition.

The background check bill, which was approved by a 240-190 vote, is the first gun control measure taken up by Democrats since they regained control of the House in the 2018 congressional midterm elections.

The bill is likely to face opposition when it goes to the Republican-controlled Senate, however. It would also need President Donald Trump’s signature in order to become law.

The White House said on Monday that Trump’s advisers would recommend the president veto the legislation because it would apply “burdensome requirements” that are “incompatible with the Second Amendment’s guarantee of an individual right to keep arms.”

Trump has previously indicated he supported efforts to extend background checks to all gun sales.

“I will be strongly pushing Comprehensive Background Checks with an emphasis on Mental Health. Raise age to 21 and end sale of Bump Stocks! Congress is in a mood to finally do something on this issue - I hope!” Trump tweeted a year ago, after a shooting at a high school in Parkland, Florida, that left 17 dead.

Representative Steny Hoyer, the No. 2 House Democrat, told reporters on Tuesday that Republicans had prevented a vote on a background check bill when they controlled the chamber, and that while there were differences among Democrats about how to curb gun violence, the background check bill had broad support.

“The carnage that we’ve seen perpetrated by gun violence over the last decade has heightened the American people’s concern, and the bill that we’re putting on the floor we believe has the support of 90 percent of the American people,” Hoyer said.

From 2009 to 2017, there were at least 173 shootings in the United States in which four or more people were killed, with at least 1,001 total deaths, according to the advocacy group Everytown for Gun Safety.

Representative Doug Collins, the top Republican on the House Judiciary Committee where the background check bill originated, said on Wednesday that the bill was ineffective because it “foolishly presumes criminals who flout existing laws will suddenly submit themselves to background checks.”

The House is set to vote on Thursday on a second bill that would extend the time it takes to conduct a background check before a gun sale to 10 days from minutes.