"Moreover, I hereby decree what you are to do for these elders of the Jews in the construction of this house of God: the expenses of these men are to be fully paid out of the royal treasury, from the revenues of Trans-Euphrates, so that the work will not stop. Whatever is needed - young bulls, rams, male lambs for burnt offerings to the God of heaven, and wheat, salt, wine and oil, as requested by the priests in Jerusalem - must be given them daily without fail, so that they may offer sacrifices pleasing to the God of heaven and pray for the well-being of the king and his sons." NIV translation
God not only handled the opposition but He also used the royal treasury to fund the work. We also see that the king provided the animals that were required for the sacrifices at the temple. He did this so that the priests would pray for him and his sons. This is what we commonly call "riding on someone's coattails" and there are many who try to do the same thing today. There are many today who try to buy the prayers and favor of God and there are many so called "pastors", "bishops", etc. who are willing to let them believe it so that they can line their own pockets. No amount of money or possessions can buy a personal relationship with God as it is only possible through Jesus Christ.