The Holy Spirit did not authorize the book of Judith. It contradicts scripture, and has many historical anachronisms. It was never recognized by the Jews as part of the Hebrew canon.
Excerpt from Apocrypha Article 4... by Dr. C. Matthew McMahon:
"The book of Judith: Jerome says this books is not canonical (Opt. T. X. p. 22) He shows this by stating that the Jews saw it as apocryphal (Opt. T. X. p. 22), and because it was written in Chaldean and copies of it grossly corrupted and depraved. Neither did Josephus, in his history of the Jews, say anything concerning this book which would be extremely strange if it were a part of their history. Problems with it: The book of Judith celebrates the seed of Simeon (Jud. 9:2), which Jacob cursed (Gen. 49:5-7); praises the deceits and lies of Judith (Jud. 11), which are not very consistent with true piety. Worse still, she even seeks the blessing of God upon them (Jud. 9:13). No mention is made of the city Bethulia in the Scriptures; nor does any trace of the deliverance mentioned there occur in Josephus or Philo, who wrote on Jewish subjects. Nabuchodosor is called a Persian emperor, where no Persian emperor ever existed by that name. And problem with chronological and geographical history occur with him and Holofernes. The history of Kings, in which the acts of Manasseh are written, read nothing about Holofernes. We also see Judith living 105 years and more, and that while she lived there was peace. This peace, therefore lasted many years, at least 100. But Amon succeeded Manasseh, and reigned 2 years, Josiah succeeded Amon and reigned 31 years and after his death a great amount of war came to the people. This is contradictory. The multiple problems of this kind show the books to be apocryphal and uninspired." Source: here
Even though the Roman Catholics read it, and include it in their Bibles, it is not inspired by God, and not the word of God. It is fiction. Nebuchadnezzar was the ruler of the Babylonians, not the Assyrians; and he ruled from Babylon not Nineveh.
Other sources that point out the errors in the books of the Catholic Apocrypha:
Why Were the Books of the Old Testament Apocrypha Rejected... by Dan Stewart [here2here.
Is Judith Historically Inaccurate...here
Errors in the Apocrypha...here
The Holy Spirit is not the author of the book of Judith.