AI lawyer achieves historic court win