WASHINGTON (AP) — The U.S. House has overwhelmingly passed a bill authorizing an oil pipeline from Canada despite a veto threat from the White House.

The bill passed Friday on a 266-153 vote, one of the first pieces of legislation considered by the Republican-controlled Congress. It was the 10th vote the House had taken since July 2011 to advance the $7 billion Keystone XL oil pipeline project, which would carry oil from Canada to U.S. Gulf Coast refineries.

The Senate has a test vote on Monday with enough support to pass an identical bill.

Hours before the House vote, Nebraska's highest court tossed out a lawsuit challenging the pipeline's route, an obstacle the White House said it needed removed to make a decision on the project. The White House veto threat was based partly on the outstanding Nebraska case.