NBCUniversal CEO Jeff Shell agreed to resign from the company after an investigation into an “inappropriate relationship” he had with a female colleague on Sunday.