The producer gets subsidiary rights, a healthy chunk of the royalty the rights holder (the writer(s), not the producer(s)) earns. Non-profits handle subsidiary rights differently (some take none) but some shows have enhancement money resulting in the commercial producer getting his or her paws in the till. Also, deals can be renegotiated before a Broadway transfer. There are no rules that are carved in stone but that's typically what's in play.