Those desires don’t want what the Spirit wants, and the Spirit doesn’t want what they want. The two are at war with each other, and that’s why you’re not supposed to do whatever you want.
Jesus turned and said to Peter, “Get behind me, Satan! You’re like a rock in my path to trip me. You’re not thinking about what God wants. You’re only thinking about what people want.”
So is the law opposed to God’s promises? Certainly not! If a law had been given that could give life, then people could become right with God by obeying that law.