I am not sure I am quite grasping your point but, I must ask....
Condemnation of the ruling class?????
Did Solomon walk in his statutes, do his judgements, all his commandments to walk in them?
1Ki 11:11 Wherefore the LORD said unto Solomon, Forasmuch as this is done of thee, and thou hast not kept my covenant and my statutes, which I have commanded thee, I will surely rend the kingdom from thee, and will give it to thy servant.
1Ki 11:31 And he said to Jeroboam, Take thee ten pieces: for thus saith the LORD, the God of Israel, Behold, I will rend the kingdom out of the hand of Solomon, and will give ten tribes to thee:
So how was Solomon concerning the temple any more righteous in ruling than those which you say were condemned as their house?
There was what was promised Solomon should he not depart from The Law, and there was what he was warned of, should he do so.
Which differs from when God said what He said to David about His not dwelling in a House made with hands.
In other words, in between the of David's saying to the LORD that he wanted to build Him a House, and its' actual building, it is clear that God was happy with David's having wanted to build Him a House.
And God obviously knew David would end up at a place spiritually that God would not allow him to build it. Just as He knew Solomon would turn from Him and warned him.
But God promised David a huge blessing for His having wanted to build it.
2 Samuel 7:5 Go and tell my servant David, Thus saith the LORD, Shalt thou build me an house for me to dwell in? 7:6 Whereas I have not dwelt in any house since the time that I brought up the children of Israel out of Egypt, even to this day, but have walked in a tent and in a tabernacle. 7:7 In all the places wherein I have walked with all the children of Israel spake I a word with any of the tribes of Israel, whom I commanded to feed my people Israel, saying, Why build ye not me an house of cedar?
That is actually God being delighted with "the apple of His eye" once more.
Result of that delight?
7:8 Now therefore so shalt thou say unto my servant David, Thus saith the LORD of hosts, I took thee from the sheepcote, from following the sheep, to be ruler over my people, over Israel: 7:9 And I was with thee whithersoever thou wentest, and have cut off all thine enemies out of thy sight, and have made thee a great name, like unto the name of the great men that are in the earth. 7:10 Moreover I will appoint a place for my people Israel, and will plant them, that they may dwell in a place of their own, and move no more; neither shall the children of wickedness afflict them any more, as beforetime, 7:11 And as since the time that I commanded judges to be over my people Israel, and have caused thee to rest from all thine enemies. Also the LORD telleth thee that he will make thee an house. 7:12 And when thy days be fulfilled, and thou shalt sleep with thy fathers, I will set up thy seed after thee, which shall proceed out of thy bowels, and I will establish his kingdom. 7:13 He shall build an house for my name, and I will stablish the throne of his kingdom for ever. 7:14 I will be his father, and he shall be my son. If he commit iniquity, I will chasten him with the rod of men, and with the stripes of the children of men: 7:15 But my mercy shall not depart away from him, as I took it from Saul, whom I put away before thee. 7:16 And thine house and thy kingdom shall be established for ever before thee: thy throne shall be established for ever. 7:17 According to all these words, and according to all this vision, so did Nathan speak unto David.
As for Acts 7, the Spirit was addressing Israel's fallen spiritual leaders.
Acts 6:15 And all that sat in the council, looking stedfastly on him, saw his face as it had been the face of an angel.
Acts 7:1 Then said the high priest, Are these things so?
And you see this?
Acts 7:51 Ye stiffnecked and uncircumcised in heart and ears, ye do always resist the Holy Ghost: as your fathers did, so do ye. 7:52 Which of the prophets have not your fathers persecuted? and they have slain them which shewed before of the coming of the Just One; of whom ye have been now the betrayers and murderers: 7:53 Who have received the law by the disposition of angels, and have not kept it.
The Lord said that same thing to Israel's fallen spiritual leaders...
Matthew 23:27 Woe unto you, scribes and Pharisees, hypocrites! for ye are like unto whited sepulchres, which indeed appear beautiful outward, but are within full of dead men's bones, and of all uncleanness. 23:28 Even so ye also outwardly appear righteous unto men, but within ye are full of hypocrisy and iniquity. 23:29 Woe unto you, scribes and Pharisees, hypocrites! because ye build the tombs of the prophets, and garnish the sepulchres of the righteous, 23:30 And say, If we had been in the days of our fathers, we would not have been partakers with them in the blood of the prophets. 23:31 Wherefore ye be witnesses unto yourselves, that ye are the children of them which killed the prophets. 23:32 Fill ye up then the measure of your fathers. 23:33 Ye serpents, ye generation of vipers, how can ye escape the damnation of hell? 23:34 Wherefore, behold, I send unto you prophets, and wise men, and scribes: and some of them ye shall kill and crucify; and some of them shall ye scourge in your synagogues, and persecute them from city to city: 23:35 That upon you may come all the righteous blood shed upon the earth, from the blood of righteous Abel unto the blood of Zacharias son of Barachias, whom ye slew between the temple and the altar.
In other words, when God said those words to David about His not having to dwell in a House made with hands, He had said it in the delight of a father towards his son's desiring to honor him.
At the same time, built into that was His foreknowledge that Israel's having built that Temple with their hands would go to their heads. So there is also that aspect of it.
John 2:20 Then said the Jews, Forty and six years was this temple in building, and wilt thou rear it up in three days?
Their heart had been the following...
Mark 11:17 And he taught, saying unto them, Is it not written, My house shall be called of all nations the house of prayer? but ye have made it a den of thieves.
And that is the sense of the Spirit's Words to Israel's fallen spiritual leadership through Stephen as that one year period spoken of in the following comes to a head.
Luke 13:6 He spake also this parable; A certain man had a fig tree planted in his vineyard; and he came and sought fruit thereon, and found none. 13:7 Then said he unto the dresser of his vineyard, Behold, these three years I come seeking fruit on this fig tree, and find none: cut it down; why cumbereth it the ground? 13:8 And he answering said unto him, Lord, let it alone this year also, till I shall dig about it, and dung it: 13:9 And if it bear fruit, well: and if not, then after that thou shalt cut it down. 13:10 And he was teaching in one of the synagogues on the sabbath.
Acts 17:11, 12