Hungary's parliament is set to debate draft legislation Tuesday that would shut down organizations and even imprison people who help illegal immigrants, in a move that has alarmed human rights groups as well as the European Union, of which Hungary is a member.