– President Obama on Friday rejected the Keystone XL pipeline, moving to bolster his environmental legacy after reviewing for seven years what has become the nation's most heated political dispute over climate change, jobs and energy development.

The decision was largely based on international politics, coming less than a month before the president goes to Paris for global climate talks. Obama has been pressing other nations to act on climate change and said approving the pipeline "would have undercut that global leadership."

Obama has become far more assertive on environmental issues in his second term, and the decision will be a key part of his legacy as he prepares to leave office after next year's presidential election.

His rejection of the pipeline may not mean the long national debate over Keystone is over, though.

TransCanada, the company seeking to build the pipeline, said it is considering reapplying for the presidential permit. The success of a new application would depend on who is in the White House. All the major Republican candidates running for president support Keystone, while Democratic candidates Hillary Clinton and Bernie Sanders oppose the project.

"Today, misplaced symbolism was chosen over merit and science — rhetoric won out over reason," TransCanada CEO Russ Girling wrote in a statement.

Speaking from the Roosevelt Room in the White House, Obama said Friday that he rejected the pipeline after Secretary of State John Kerry told him the State Department review had determined that it was not in the national interest.

"The pipeline would not make a meaningful long-term contribution to our economy," Obama said. "Shipping dirtier crude oil into our country would not increase America's energy security."

Keystone was expected to create thousands of construction jobs, but only about 35 permanent jobs.

Obama's decision brought an immediate backlash from business groups and Republicans, with GOP presidential candidate Jeb Bush tweeting that "the Obama Admin's politically motivated rejection of the Keystone XL Pipeline is a self-inflicted attack on the U.S. economy and jobs."

Among Minnesota's congressional delegation, Republicans and at least one Democrat saw a missed opportunity to create thousands of jobs, keep oil prices down and reduce oil train traffic in the state. Other Democrats who could be reached for comment saw a welcome commitment to clean energy that eventually would make the nation less dependent on fossil fuels.

"It's sad that this important infrastructure project that has broad bipartisan support has fallen victim to politics as usual in Washington," Republican Rep. Erik Paulsen said in a statement. Democratic Rep. Rick Nolan, part of whose district is crossed by rail lines from Canada, fretted about oil train traffic, saying in a statement, "We've got to find a safer way — and more environmentally friendly — way to transport this oil."

Some of Nolan's Democratic colleagues offered starkly different conclusions. "While this decision took too long, I have consistently said that Congress should not circumvent the established federal review process," Sen. Al Franken said in an e-mail to the Star Tribune. "Since that process determined that the project is not in the national interest, I agree that it should not move forward."

Obama said the political debate on the merits of the Keystone pipeline had become "overinflated."

"All of this obscured the fact that this pipeline would neither be a silver bullet for the economy, as was promised by some, nor the express lane to climate disaster proclaimed by others," he said.

The State Department's review, which attracted nearly 5 million public comments, concluded that the 800,000-barrel-a-day pipeline would have little impact on greenhouse gas emissions or the economy. State Department officials said the international perception, though, would have been that approving Keystone was inconsistent with U.S. leadership on climate change.

Kerry said the critical factor in his determination that allowing the pipeline was not in the national interest was the consideration that "moving forward with this project would significantly undermine our ability to continue leading the world in combating climate change."

The pipeline was proposed to run 1,179 miles from the Western Canada oil sands in Alberta to refineries in Texas. Environmental groups seized on government estimates that the Canadian oil results in 17 percent more planet-warming carbon emissions than other sources of oil.

Staff writer Jim Spencer contributed to this report.