Changes to the law will mean foreign nationals will need a passport to enter the Channel Islands.