The studios sued Midjourney, accusing it of facilitating widespread infringement of their copyrighted characters.