what does the ministry of justice do