The second judgment rendered by the Heavenly court is to establish God’s eternal kingdom. In this case, Daniel sees one like the Son of man being given an everlasting kingdom from God the Father.
I saw in the night visions, and, behold, [one] like the Son of man came with the clouds of heaven, and came to the Ancient of days, and they brought him near before him. And there was given him dominion, and glory, and a kingdom, that all people, nations, and languages, should serve him: his dominion [is] an everlasting dominion, which shall not pass away, and his kingdom [that] which shall not be destroyed. (Daniel 7:13-14)
And the kingdom and dominion, and the greatness of the kingdom under the whole heaven, shall be given to the people of the saints of the most High, whose kingdom [is] an everlasting kingdom, and all dominions shall serve and obey him. (Daniel 7:27)
The Apostle John also sees a Heavenly vision where the Lamb that was slain receives a scroll from God the Father that ultimately results in Him establishing an eternal kingdom.
And I beheld, and, lo, in the midst of the throne and of the four beasts, and in the midst of the elders, stood a Lamb as it had been slain, having seven horns and seven eyes, which are the seven Spirits of God sent forth into all the earth. And he came and took the book out of the right hand of him that sat upon the throne. (Revelation 5:6-7)
And the seventh angel sounded; and there were great voices in heaven, saying, The kingdoms of this world are become [the kingdoms] of our Lord, and of his Christ; and he shall reign for ever and ever. (Revelation 11:15)
Since Jesus Christ can only receive the eternal kingdom from His Father once, we can conclude that Daniel and John see the same Heavenly courtroom scene. The scene described in Daniel 7 is very similar to the scene described in Revelation 4 and 5. Daniel sees both judgments rendered, but John only sees the second judgment rendered. Daniel’s vision ends at that point and John picks up with the celebration and execution of both judgments. Thus we see an important link between the book of Daniel and the book of Revelation!
This second judgment is executed in Revelation 20-22.