Campaigners had argued changes in approach made by the Crown Prosecution Service were “unlawful”.