When the Trump administration launched a major attack on Iran, news organizations had to navigate a shaky environment for communications—and moral clarity.