We don't know if the NYT could "constitutionally publish without penalty" because the case it won was on a restraining order from the government. The court inhibited the prior restraint, and said that the government could prosecute AFTER publication. NYT published, the government declined to prosecute for political reasons.
The success of a criminal case will depend on the evidence - how legitimate is the "classification" of was what was published?