Immigration surge puts strain on legal system