U.S. President Barack Obama would veto legislation approving construction of the controversial Keystone XL oil pipeline, the White House said Tuesday.

White House press secretary Josh Earnest said Obama wouldn鈥檛 sign the long-delayed Keystone bill if it passes Congress.

The two main sponsors of the bill, Sen. Joe Manchin, a Democrat, and Sen. John Hoeven, a Republican, said they had enough votes to overcome delay tactics on the bill, but not a presidential veto.

Majority Leader Mitch McConnell moved to put the bill directly on the Senate calendar and the House is expected to vote and pass the legislation on Friday.

But Earnest said legislation should not undermine the pipeline review process currently underway at the U.S. State Department, or the pending lawsuit in Nebraska over the pipeline route. 

In a statement, Prime Minister Stephen Harper鈥檚 office said Ottawa鈥檚 position on Keystone 鈥渞emains the same: we believe the project should be approved.鈥

The PMO said the pipeline, which would carry bitumen from the Alberta oilsands to refineries in Texas, will create jobs in both countries.

鈥淩ight now this is not a debate between Canada and the U.S.; it鈥檚 a debate between the president and the American people, who are overwhelmingly supportive of the project,鈥 the PMO said, adding that it won鈥檛 comment on the 鈥淎merican political process.鈥

Greenpeace congratulated Obama for 鈥渋ndicating that he will veto a Keystone bill that would lock Canada and the U.S. into a high-cost, highly polluting energy source for decades to come.鈥

鈥淲ith both climate and economic realities telling us that gambling our future on the tarsands is a bad bet, it is time for the Canadian government to finally get serious about diversifying our economy and invest in renewable energy sources that create jobs without sacrificing our planet to do it,鈥 the environmental group said in a statement Tuesday.

Obama has been critical of efforts to fast-track the $5.4-billion pipeline project, saying it would mostly benefit Canadian oil companies, not American consumers.

With files from The Associated Press