Meta Turns to AI for Legal Battles as Lawsuit Costs Threaten Stock Recovery