A federal judge on Thursday dismissed the indictment against two people accused last month of “ambushing” federal agents conducting an immigration sweep in Chicago, including a woman who was shot five times in the incident.