Actually, didn’t it take Rome until we’ll into the 4th (!) century at the Council of Laodicea to formalize their view of the canon…
That it took longer to undo the damage is not surprising. Rome was very busy slaughtering believers to hold on to their authority.
Never the less, God has worked to inspire Scripture, preserve it, and identify it. For this I’m grateful.
And scripture came out of the church, not the other way around. The councils and Pipes determined what was scripture and what was not based on the teachings of the Church, the body of Christ.