Washington (CNN) A federal appeals court ruled against the Trump administration's attempt to block a California law that limits cooperation between law enforcement and federal immigration authorities.

The 54-page ruling Thursday from the 9th US Circuit Court of Appeals is yet another blow to President Donald Trump who has railed against so-called sanctuary cities, a catch-all term used to describe jurisdictions that in some ways do not cooperate with federal immigration enforcement agencies

Last year, the Trump administration challenged parts of three "sanctuary" laws in California designed to protect undocumented immigrants from federal immigration officials.

The California laws do that in a variety of ways, including requiring that employers give workers a heads up about potential worksite inspections, limiting the cooperation between local law enforcement and immigration authorities, and imposing inspection requirements on immigrant detention facilities.

The three-judge panel also upheld parts of a law that authorizes the California attorney general to inspect facilities detaining immigrants and affirmed the district court's ruling on requiring employers to notify workers of inspections.

Read More