YouTube’s current deal with NBC would have expired at midnight Tuesday unless the two companies reached an extension.