A United States appeals court has temporarily blocked the transfer of federal forest land in Arizona to a pair of international companies that plan to mine one of the largest copper deposits in North America.

The transfer was scheduled for Tuesday, but a panel of judges with the 9th U.S. District Court of Appeals issued a temporary injunction late Monday in response to last-minute appeals by a Native American tribe and environmentalists. The land includes Oak Flat — an area used for centuries for religious ceremonies, prayer and gathering of medicinal plants by the San Carlos Apache people and other Native American tribes.

The tribe celebrated the pause, but President Donald Trump in a social media post said delaying the transfer by months will affect those people who are depending on new jobs and the nation’s ability to access copper domestically.

The fight over Oak Flat has spanned two decades, with the latest legal wrangling centered on a required environmental review that was released by the U.S. Forest Service earlier this summer and an appraisal of the land to be mined by Resolution Copper about 60 miles east of Phoenix.

Before the land exchange can happen, the plaintiffs argued that the federal government must prepare a comprehensive review that covers “every aspect of the planned mine and all related infrastructure.”

They said the government failed to consider the potential for a dam breach, pipeline failure and if there was an emergency plan for a tailings, or waste, storage area.

As for the appraisal, they said it doesn’t account for the value of the copper deposits that are at least 5,000 feet below the surface.

The appeals court plans to hear arguments on the merits of the case later this year.

Opponents of the mine say their prayers are paying off.

“This injunction comes in a desperate time of asking for miracles, all over the country and all over the world,” Wendsler Nosie Sr. of the group Apache Stronghold said in a statement shared on social media.

Nosie, a former tribal chairman, described the land and water at Oak Flat as precious.

Apache Stronghold, the San Carlos Apache Tribe and other plaintiffs having been fighting for years to save what tribal members call Chi’chil Bildagoteel. The area is dotted with oak groves and traditional plants the Apaches consider essential to their religion.