Washington (CNN) President Barack Obama will have 10 days to issue a veto on a bill authorizing construction of the Keystone XL pipeline once it hits his desk, now that the House has passed a final version, 270-152.

Twenty-nine Democrats voted with Republicans on Wednesday to pass the measure, which Obama has repeatedly said he will veto. He believes the decision to build the pipeline should rest with the executive branch. Michigan GOP Rep. Justin Amash was the only Republican to vote against the legislation.

Neither the House nor the Senate passed the proposal by a wide enough margin to override a presidential veto.

Earlier in the day, House Speaker John Boehner mocked Obama's promised veto on the bill, saying the President is "standing with a bunch of left-fringe extremists and anarchists."

Wednesday's vote to allow construction to begin on the pipeline that would carry oil from Canada to the Gulf of Mexico will trigger the first veto by the President since the GOP took control of both the House and Senate earlier this year.

Read More