The administration said it’s a matter of security, but the new rule appears to be part of a larger effort to restrict the press.