The parent company simply writes that into the license. Companies like Intellectual Ventures set up a shell company and give that company a time limited exclusive right to some patents, including the right to sue other companies for infringement, during that time period. In exchange for this exclusive license the shell company agrees to pay, let's say, 95% of any revenue generated by sub-licensing or court settlements to the parent company.