FILE - In this Feb. 9, 2017, file photo, a man walks up the steps of the 9th U.S. Circuit Court of Appeals building in San Francisco. The Trump administration will try to convince a federal appeals court to block California laws aimed at protecting immigrants in one of the many ongoing lawsuits between the White House and the Democrat-dominated state. At issue in the Wednesday, March 13, 2019, hearing before the 9th U.S. Circuit Court of Appeals is a March 2018 lawsuit by the administration over three California laws that extended protections to people in the country illegally. (Marcio Jose Sanchez, File/Associated Press)

SAN FRANCISCO — A U.S. appeals court appeared inclined Wednesday to reject a request by the Trump administration to block a California law that limits police cooperation with federal immigration officials.

But the 9th U.S. Circuit Court of Appeals raised concerns about another state law extending protections to people in the country illegally. The Trump administration has sued California over three laws, saying they obstruct federal immigration efforts and urging the 9th Circuit to block them.

Judge Milan Smith said at a hearing that U.S. officials might find it frustrating that local authorities can’t help them take custody of people in the country illegally.

But “because it’s an obstacle doesn’t mean it’s illegal, right?” he asked an attorney for the U.S. Department of Justice.

Judge Andrew Hurwitz said the state law doesn’t allow local officials to interfere with federal efforts to take immigrants into custody, it just forbids them from “affirmatively helping.”

“They’re not required to be helpful, are they?” he asked.

Smith and another judge on the three-judge panel, however, expressed concerns about another state law requiring inspections of facilities where immigrants are detained. The panel did not immediately issue a ruling.

More than 50 immigrant advocates protested outside the federal courthouse during the hearing, some holding signs saying “ICE out of California,” referring to U.S. Immigration and Customs Enforcement.

The Trump administration’s 2018 lawsuit was part of its broader efforts to crack down on so-called sanctuary jurisdictions that it says allow criminals to stay on the streets.

California officials say their policies promote trust between immigrant communities and law enforcement and encourage witnesses and victims to report crime.

The Justice Department argued in court documents that the Constitution gives the federal government pre-eminent power to regulate immigration, and the three laws obstruct those efforts.

“The bills, individually and collectively, mark an extraordinary and intentional assault on the federal government’s enforcement of the immigration laws,” Justice Department attorneys said in a filing.

U.S. Judge John Mendez in Sacramento kept two of the laws in place in July but blocked part of a third.

He ruled that California could limit police cooperation with immigration officials and require inspections of detention facilities where immigrants are held, but the state could not bar private employers from allowing immigration officials on their premises without a warrant.

The three laws were aimed at preserving “state resources for state priorities and to safeguard the health and welfare of state residents,” the California attorney general’s office said in a brief to the 9th Circuit. “Nothing in the Constitution or federal immigration law divests the state of the authority to make those choices.”

President Donald Trump has repeatedly criticized the 9th Circuit for ruling against several of his policies. California has sued his administration dozens of times, mostly over immigration, the environment and health care.

Copyright 2019 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.