The former Duke of York had launched a legal challenge against Thames Valley Police over the lawfulness of the raids