Your confused about revealing sources. This would be a civil suit. If the siource was material to proving what the NYT said was true, they would either reveal the source or lose the suit. It is also possible they could be compelled to reveal the source during discovery. This is not a criminal case. The second case is a little less clear cut, but the first is absolutely certain.