[Editor's note: This story was updated at 11:45 a.m. CT March 30.]

Six environmental groups filed a lawsuit against the Trump administration on March 30 to challenge its decision to approve construction of the controversial Keystone XL pipeline.

The groups told a federal court in Montana that the State Department, which granted the permit needed for the pipeline to cross the Canadian-U.S. border, relied on an "outdated and incomplete environmental impact statement" when making its decision earlier this month.

By approving the pipeline without public input and an up-to-date environmental assessment, the administration violated the National Environmental Policy Act, the groups said in their legal filing.

"They have relied on an arbitrary, stale, and incomplete environmental review completed over three years ago, for a process that ended with the State Department’s denial of a cross-border permit," the court filing says.

RELATED:

Keystone XL Faces Short-Term Fury, Long-Term Demand

President’s Order Rolls Back Climate Change Rules

U.S. President Donald Trump announced the presidential permit for the Keystone XL at the White House last week, with pipeline company TransCanada Corp.'s (NYSE: TRP) CEO Russ Girling and Sean McGarvey, president of North America's Building Trades Unions, standing nearby.

Trump, a Republican, said the project would lower consumer fuel prices, create jobs and reduce U.S. dependence on foreign oil.

His Democratic predecessor, former president Barack Obama, rejected the pipeline, saying it would lead to an increase in greenhouse gas emissions and do nothing to reduce fuel prices for U.S. motorists.

The lawsuit was the second one filed this week to challenge the Trump administration's recent moves to undo Obama's climate change regulations.

Conservation groups and the Northern Cheyenne Native American tribe of Montana sued the administration on Wednesday for violating the National Environmental Policy Act when it lifted a moratorium on coal leases on federal land.

Both lawsuits were filed in U.S. District Court in Montana’s Great Falls Division.