Amnesty, Liberty, Privacy campaigners win vital battle against UK mass surveillance at European Court of Human Rights