You are engaging in cyclical reasoning here. What authority determined the canon?
The promise of God was that His word would not pass away. It was not the RCC that made that promise.
Matthew 24:35 Heaven and earth shall pass away, but my words shall not pass away.
God decided what of His word would not pass away not the RCC or any other earthly entity. It was by Gods authority.