The legislation would also punish employers who hire illegal immigrants .