Shifting public sentiment toward immigration could influence congressional races and policy strategies ahead of the midterms.