God keeps His promises; he made a covenant and he was faithful to fulfill it. This Psalm recounts that history. The covenant with Abraham, Isaac and Jacob was to give Land, Offspring and Blessing to the nations. The covenant is fulfilled in spades in Jesus Christ in the NT.
The emphasis in this Psalm is on the Land that was promised to God’s people. The Lord took care of the Patriarchs, sent Joseph, then Moses, gave judgments, did miracles, took the Promised Land. God did all that so that you on your part would “keep his laws.”
The fulfillment of Promised Land goes through and comes out in the NT as: eternal life, inheritance of heaven, forgiveness of sins and salvation, the kingdom of God ruling in the hearts of believers, resurrection, Paradise, new heaven and new earth, and such.
In order to keep covenant the Lord had to bring judgment, overcome, and drive out the Enemy (the gods of Egypt and the heathen gods of Canaan). So also judgment had to come upon Sin, Death and Devil in gentleness on the cross and in violence at the tomb. So also judgment comes in daily repentance and faith. Now: Keep His Laws, by the power of the Gospel.