I don't know about your specific examples, but yes, royalties from spin-offs absolutely do flow back to the supporting institution.
Further, would the private sector benefit from such crucial hard-research discoveries being public knowledge and thus open for all to benefit from? (Possibly in exchange for a requirement of a minimum number of workers in that field in this country, and an import tariff on products if they aren't locally employing? I could see extending mutual tariff free exchange status among other nations with similar public domain enriching efforts.)