Critics say such tactic will discourage undocumented immigrants from appearing in court to testify as witnesses for prosecutors.