House Democrats voted Friday to defend localities that allow illegal immigrants to vote in their elections, turning back a GOP attempt to discourage the practice.