A new state law designed to help North Carolina sheriffs identify illegal immigrants who pass through county jails will be effective only with federal cooperation, authorities said.