The Prime Minister appeared to commit to holding a fresh public vote if he pushes ahead with reversing Brexit.