One of the most expensive data breaches in the UK winds up in court.