The European Court of Justice has ruled against the UK government following a legal challenge over data retention. EU judges said communications data could only be retained if it was used to fight serious crime. The legal challenge was initially championed by Brexit Secretary David Davis, who was then a backbench Conservative MP.