WASHINGTON — The Supreme Court indicated on Wednesday that federal courts in California had moved too fast in ordering the Trump administration to disclose documents concerning its decision to end a program that protected some 800,000 young, undocumented immigrants from deportation.

In an unsigned opinion, the justices instructed the lower courts to consider the administration’s arguments on two threshold legal issues before requiring that the documents be turned over. The administration contends that its decision to end the program, known as Deferred Action for Childhood Arrivals, or DACA, was within its lawful discretion and that the courts are in any event without jurisdiction to review the matter.

“Either of those arguments, if accepted, likely would eliminate the need for the district court to examine a complete administrative record,” the Supreme Court’s opinion said. Should the courts reject those arguments, the opinion said, they should nonetheless consider requiring fewer documents to be produced and allow the administration to present arguments about whether particular documents are privileged.

There were no noted dissents from Wednesday’s opinion, which appeared to be the product of compromise. That was in contrast to the Supreme Court’s first order in the case on Dec. 8, when the justices split 5 to 4 along ideological lines. The more conservative members of the court were in the majority, and they allowed the administration to temporarily shield the documents.