Towry agrees to pay over £930k in legal costs