As many as 74,000 cases could be overturned following a key ruling by the UK’s chief magistrate.