Mark Zuckerberg and Meta’s board reached a compromise after months of negotiations over voting control, compensation and a proposed new stock class.