orig The Keystone pipeline explained_00014327.jpg
orig The Keystone pipeline explained_00014327.jpg
Now playing
01:47
The Keystone pipeline debate in 2 mins
capitol officer
CNN
capitol officer
Now playing
03:40
'I felt like they were trying to kill me': Police officers to testify during hearing
Church of Glad Tidings
Now playing
01:16
Reporter calls out Flynn's comment after being given an AR-15
Now playing
03:13
'Pure nonsense': Deconstructing common myths about the vaccine
US President Joe Biden waves as he participates in a CNN Town Hall hosted by Don Lemon at Mount St. Joseph University in Cincinnati, Ohio, July 21, 2021. (Photo by SAUL LOEB / AFP) (Photo by SAUL LOEB/AFP via Getty Images)
SAUL LOEB/AFP/AFP via Getty Images
US President Joe Biden waves as he participates in a CNN Town Hall hosted by Don Lemon at Mount St. Joseph University in Cincinnati, Ohio, July 21, 2021. (Photo by SAUL LOEB / AFP) (Photo by SAUL LOEB/AFP via Getty Images)
Now playing
02:17
See what Biden said about today's infrastructure vote
CNN/Getty Images
Now playing
02:50
Carl Bernstein: Trump is our own American war criminal
CNN
Now playing
02:19
Tapper presses Republican on GOP resistance to January 6 probe
Now playing
01:35
Republican governor balks at Covid-19 mandates as state's cases soar
Dr. Fauci NIH research China Tapper sotu vpx _00023404.png
CNN
Dr. Fauci NIH research China Tapper sotu vpx _00023404.png
Now playing
03:13
Dr. Fauci weighs in on if US should collaborate with Wuhan labs in future
Pool
Now playing
02:06
WaPo: This is what Trump's PAC is spending its money on
CNN
Now playing
02:04
AZ lawmaker says audit 'not about Trump.' Her emails show otherwise
Getty Images
Now playing
01:55
'Almost giddy': Author describes Trump during Capitol riot
Florida Gov. Ron DeSantis, center, speaks during a news conference at West Miami Middle School in Miami on Tuesday, May 4, 2021.
Matias J. Ocner/Miami Herald/AP
Florida Gov. Ron DeSantis, center, speaks during a news conference at West Miami Middle School in Miami on Tuesday, May 4, 2021.
Now playing
02:20
Florida Gov. Ron DeSantis blames this for surge in cases
CNN
Now playing
03:31
'I got elected to shake things up': Lightfoot on time as mayor
US Speaker of the House, Nancy Pelosi, Democrat of California, speaks at her weekly press briefing on Capitol Hill in Washington, DC, on July 22, 2021. (Photo by Brendan SMIALOWSKI / AFP) (Photo by BRENDAN SMIALOWSKI/AFP via Getty Images)
BRENDAN SMIALOWSKI/AFP/AFP via Getty Images
US Speaker of the House, Nancy Pelosi, Democrat of California, speaks at her weekly press briefing on Capitol Hill in Washington, DC, on July 22, 2021. (Photo by Brendan SMIALOWSKI / AFP) (Photo by BRENDAN SMIALOWSKI/AFP via Getty Images)
Now playing
01:21
Pelosi explains why she rejected GOP lawmakers from January 6 committee
WASHINGTON, DC - JULY 20: U.S. President Donald Trump talks to reporters with Vice President Mike Pence in the Oval Office at the White House July 20, 2020 in Washington, DC. Trump hosted Republican Congressional leaders and members of his cabinet to talk about a proposed new round of financial stimulus to help the economy during the ongoing global coronavirus pandemic.  (Photo by Doug Mills-Pool/Getty Images)
Pool/Getty Images North America/Getty Images
WASHINGTON, DC - JULY 20: U.S. President Donald Trump talks to reporters with Vice President Mike Pence in the Oval Office at the White House July 20, 2020 in Washington, DC. Trump hosted Republican Congressional leaders and members of his cabinet to talk about a proposed new round of financial stimulus to help the economy during the ongoing global coronavirus pandemic. (Photo by Doug Mills-Pool/Getty Images)
Now playing
06:43
Trump shares disappointment with Pence in new audio recording
Washington CNN —  

The Supreme Court on Monday cleared the way for several pipeline projects to proceed under a fast-track permitting process but excluded the controversial Keystone XL expansion from their ruling, forcing major delays.

Though the case is a partial win for the Trump administration, the exclusion of Keystone XL is a major defeat for a President who made good on a campaign promise to move forward with the project through executive order.

A federal judge in May sided with environmental groups, requiring that new oil and gas pipelines must undergo a lengthy permitting and regulation process in order to build across bodies of water.

That judge’s ruling canceled the so-called “Nationwide Permit 12” for several new pipelines, which authorized and fast-tracked work on pipelines that run across bodies of water. That ruling stated that the Army Corps of Engineers did not adequately consider the projects’ environmental impact on endangered species. The ruling required the projects that received such a permit to stop construction while the environmental impact study was completed.

The Supreme Court on Monday invalidated that lower court ruling in part, allowing many projects to go ahead while the environmental reviews are done, but excluded the Keystone XL. The Keystone XL pipeline must still abide by the arduous environmental review process, the justices ruled.

If lengthy enough, that process could jeopardize the pipeline’s existence, pending the outcome of the 2020 election. Democrat Joe Biden has pledged to rescind the permit for Keystone if he wins.

The targeting of Keystone by the Supreme Court represents the third loss in a week for Trump-supported pipeline projects. In January 2017, President Donald Trump signed executive actions that advanced both Dakota Access and the Keystone XL pipelines.

Earlier Monday, a district court ruled that the Dakota Access Pipeline must shut down by August 5 during an in-depth environmental review of the controversial project. The rare shutdown of an operating pipeline marks a major win for the Standing Rock Sioux Tribe and environmental groups that have fought fiercely for years against the oil pipeline. Opponents have argued the pipeline could contaminate drinking water and destroy burial and prayer sites of Native Americans.

And on Sunday, Dominion Energy and Duke Energy announced the cancellation of the Atlantic Coast Pipeline, a natural gas pipeline initially announced in 2014 that had been set to stretch hundreds of miles across West Virginia, Virginia and North Carolina.

The Keystone XL expansion project is no stranger to controversy. Facing pressure from environmental groups, President Barack Obama vetoed legislation that would have approved the project in February 2015 and rejected a presidential permit from the company attempting to build the project later that year. And in 2017, a total of 210,000 gallons of oil leaked from the existing Keystone Pipeline in South Dakota.

Right now, the Keystone Pipeline system stretches more than 2,600 miles from Hardisty, Alberta, Canada, east into Manitoba, Canada, and then down to Texas, according to parent company TransCanada. That pipeline already functions and transports crude oil from Canada. The proposed Keystone XL pipeline, which would stretch from Hardisty down to Steele City, Nebraska, would complete the entire proposed system by cutting through Montana and South Dakota.

CNN’s Eric Levenson and Ross Levitt contributed to this report.