Complex sentence: Feig gave the script to Judd Apatow who sold it to DreamWorks who, in turn, sold it to NBC, who quickly greenlit the script as a pilot.
Split into simpler sentences: Feig gave the script to Judd Apatow, who sold it to DreamWorks. That company, in turn, sold it to NBC, who quickly greenlit the script as a pilot.