I don't know the details of the contract, but I know that apparently it gave her a percentage of net, rather than gross, on the resulting film.
Which, when dealing with Hollywood, ought to be prima facie evidence of ineffective/incompetent counsel on the part of whatever attorney represented/advised her during the negotiations :)
A much more likely explanation is that the writer and her lawyer know perfectly well the difference between gross and net, but this was the best deal they could get, and it was better than nothing.
Writer and her lawyer: "We demand 3% of the gross."
Studio head: "I'm not offering any percentage of the gross."
Writer and her lawyer: "OK, we'll settle for 2.5% of the gross."
Studio head: "I told you: nothing on the gross. Zero. If you don't like that, get lost. I'll hire another writer."
Writer and her lawyer: "Well, OK, how about 3% of the net."
Studio head: "I think we can agree to that."
She talks of "net profit", not "gross profit", so that's a possibility.
"Somehow"? They would do so via a completely standard clause that enjoins any acquiring entity to honour the terms of the contract. I have never negotiated a contract that did not have a such a clause. Neither has anyone else who knows what they are doing.
Maybe she had incompetent representation. Maybe the arcana of this specific acquisition were such that any contractual obligations were effectively terminated.
But don't pretend for a moment that this isn't bog-standard, boiler-plate-level stuff. We know exactly how such contractual obligations would be conveyed across multiple acquisitions, mergers and organizational changes because we are used to writing contracts that specifically say "If you're acquired, the obligations under this contract are on the acquirer."