Lawyers acting for the journalist’s partner held for nine hours under anti-terror laws have won an order to stop the Government and police “inspecting, copying or sharing” data seized from him – except “for the purpose of protecting national security”.