Some, I saw, have a prejudice against our rulers and laws; but if it were not for law, this world would be in an awful condition. God restrains our rulers; for the hearts of all are in His hands. Bounds are set, beyond which they cannot go. Many of the rulers are those whom Satan controls; but I saw that God has His agents, even among the rulers. And some of them will yet be converted to the truth. They are now acting the part that God would have them. When Satan works through his agents, propositions are made, that, if carried out, would impede the work of God and produce great evil. The good angels move upon these agents of God to oppose such propositions with strong reasons, which Satan's agents cannot resist. A few of God's agents will have power to bear down a great mass of evil. Thus the work will go on until the third message has done its work, and at the loud cry of the third angel, these agents will have an opportunity to receive the truth, and some of them will be converted, …
"The king’s heart is in the hand of the Lord, as the rivers of water: he turneth it whithersoever he will."
The EGW statement that 'the hearts of all are in His hands' directly echoes the sentiment of Proverbs 21:1, which states 'The king’s heart is in the hand of the Lord.' This is a clear and direct parallel.
"Let every soul be subject unto the higher powers. For there is no power but of God: the powers that be are ordained of God."
Both passages address the idea of submission to governing authorities. Romans 13:1 emphasizes that these authorities are ordained by God, while EGW acknowledges the necessity of law and order, even while noting that some rulers are influenced by Satan. There is a thematic overlap in the discussion of earthly powers.
"This matter is by the decree of the watchers, and the demand by the word of the holy ones: to the intent that the living may know that the most High ruleth in the kingdom of men, and giveth it to whomsoever he will, and setteth up over it the basest of men."
Both passages discuss God's sovereignty over rulers and kingdoms, and the idea that God can use even ungodly rulers for His purposes. The EGW passage expands on this by suggesting God has agents even among rulers who can influence events.