The immigration flare-up that has engulfed Washington has emerged as a political challenge for Republicans and Democrats alike as they struggle to deal with the complexities and emotions of an issue that is scrambling party and geographic lines.