A federal appeals court blocked a California law requiring federal immigration agents to wear identification.