Keystone XL bill passes in 270-151 House vote amid veto threat from Obama
Activists hold a rally against government approval of the planned Keystone XL oil pipeline, in front of the White House in Washington on Jan. 10, 2015. Photo by Jonathan Ernst for Reuters.

The House of Representatives passed a bill to approve the long-pending Keystone XL pipeline on Wednesday, a measure that will next go to President Barack Obama who has vowed to veto it.

The bill passed by at least 270 to 151 in the House of Representatives, with votes still being counted. To pass it only needed a simple majority of representatives who voted. The legislation passed in the Senate in late January.

TransCanada Corp's pipeline would carry 830,000 barrels per day of mostly Canadian oil sands petroleum to Nebraska en route to refineries and ports along the U.S. Gulf. It has been pending for more than six years.

(Reporting by Timothy Gardner; Editing by Sandra Maler)