Poland and Hungary insist member states should be able to maintain unilateral policies on how they deal with undocumented people crossing their borders.