The Justice Department had sought information about care provided at New York City hospitals, which were the subject of the ruling.