A law has been introduced to prevent British citizenship being reinstated to people considered a national security risk following a successful initial appeal.