In the end it's shown that AI are part of the society. The blue AI is a member of the court. The ship AI admits his murders being all in self defence. Thus you (the detective) disabling/killing it is a step above the law.
After you deactivate MAL, Ground Control says in an aside that he forgot to record your (i.e. the detective's) mic, so from what I understand, you're tried for murder.
The exact quote is:
"Thus ends this reconstruction of the record... as we forgot to record your mic feed. We'll erm... we'll see you in court, detective."