The rule codifies and expands a policy he issued in 2021, after it came to light that the Trump administration had secretly gone after records of reporters for The Times, The Washington Post and CNN.