Newsroom leaders were tested when The New Yorker magazine printed details about obscenity-laced remarks made by White House communications director in a conversation with Ryan Lizza.