Yes, in those verses Paul did contrast the ministry of death with the ministry of the Holy Spirit. Then comes the verse that clinches the fact that the ten commandments were temporary. 11 And if what was transitory came with glory, how much greater is the glory of that which lasts! Transitory means temporary. It means that Israelites to whom the ten were given are no longer subject to them. They are subject to the Holy Spirit as their guide. When you read those verses notice all the verbs are in the past tense meaning the subject no longer is.
Where do you see that in all of those verses? Do you really believe the ministry of death is written on our hearts?
Somehow you have been made to believe all those verses are referring to the ten commandments. Somehow, I too was led to believe that. No, Paul is not contradicting himself because he was not referring to the ten in any of the verses you provided. You choose Jn15:10 as one of your "proof texts". I use the same verse to prove Jesus commands are not the ten commandments. Notice in verse 12 Jesus reveals what His commandment is 12 My command is this: Love each other as I have loved you. That is not the ten that you would like for Him to have said. That is a brand-new command that is not to be found anywhere else. jn13: 34 “A new command I give you: Love one another. As I have loved you, so you must love one another. 1Jn 3:19-24 reiterates the exact fact. Verse 19 states we, you and I, belong to the TRUTH. How do we belong to the truth? Verse 23 believe in the name of his Son, Jesus Christ, and to love one another as he commanded us.
It is love that is written on our hearts. Love above every other command ever written reveals the true nature of our God. If, and I pray you are, wanting to emulate our Savior Jesus Christ then allow love to shine forth. It is Love, not the keeping of old covenant days that were for one nation, Israel, that is the key to eternity.