Yea, there was a debate because the unbelieving Jews poisoned the minds of Christians into thinking those books don’t belong.
Truth is, if the church has not declared these books scripture and preserve them, the Jews would have no stories to read during Hanukah, because they would all be lost...