Prince Andrew reaches a settlement with Virginia