Meta shares plummet on AI spending surge and legal threats.