A bill passed by lawmakers would not outright bar local contracts with ICE. But they could continue only if ICE accepts due process rules and state courts having power over its officers.