Laws say differently

If California law precludes police from assisting federal officers why is the governor sending more police officers where Marines and National Guardsmen are deployed?