The NY Times does not hold a security clearance. They cannot be prosecuted for revealing information they are not supposed to have in the first place. Someone else does hold such a clearance, the ones who gave them the information, and can and should be prosecuted.
That said, they are traitorous slime, and no one should ever by their wares again. They will pay, in the market, for their treason.
So you're telling me that a news paper has carte blanche to spread govt secrets any time in any manner because they are NOT supposed to have that info. I think you'r ewrong my friend . So by your logic a spy cannot be prosecuted because he is spreading information he isn't supposed to have .