Campaigners secure judicial review of rules that order ministers and officials to delete instant message chats.