Comcast, the nation’s largest cable operator, has sealed a long-anticipated deal under which it will gain control of the television network NBC Universal from the conglomerate General Electric.

The two companies will form a joint venture 51 percent owned by Comcast and 49 percent owned by General Electric.