The U.S. House of Representatives voted Wednesday to block funding for President Barack Obama's immigration actions from last November.

The legislation passed with a 236-191 vote, and saw 10 Republicans vote against and two Democrats vote in favor, reported The Hill.

The measure would provide some $40 billion in funding to the Homeland Security Department for the remainder of the budget year, and included in the bill are Republican-introduced amendments reversing Obama's previous immigration actions.

One of the amendments cuts off funding for Obama's executive immigration actions from November providing deportation relief and work permits to nearly 4 million illegal immigrants, and was adopted with a 237-190 vote, with seven Republicans voting no.

Another amendment included in the bill stops the Deferred Action for Children Arrival Program (DACA), which has provided protection to 600,000 immigrants who came to the country illegally as children, reported The Associated Press. That amendment passed with a 218-209 vote, with 26 Republicans voting against.

House Speaker John Boehner, R-Ohio, made a speech on the floor before the votes began, repeatedly emphasizing that Obama didn't have the authority to unilaterally change the nation's immigration laws, reported Fox News.

"We are dealing with a president who has ignored the people, ignored the Constitution, and even his own past statements," Boehner said.

"We do not take this action lightly, but simply there is no alternative. It's not a dispute between the parties or even between the branches of our government. This executive overreach is an affront to the rule of law and to the Constitution itself."

The bill will now head to the Senate, where it is expected to face tough resistance. Even with Republicans in control, since House GOP leaders decided to include the vote to undo the DACA immigrant children program, more moderate Senate Republicans may vote against deporting young children, according to Fox.

Republicans would have to obtain a 60-vote majority to advance the bill, but they only have 54 members.

Obama has said he will veto the legislation should it reach his desk.