High court weighs state role in prosecuting immigrants