Justice system 'put at risk' by Ministry of Justice's data-sharing project