Gen 49:10 The sceptre shall not depart from Judah, nor a lawgiver from between his feet, until Shiloh come; and unto him shall the gathering of the people be.
Until Shiloh come is talking about the glory of the latter house. When Christ inhabits his people in glory. When the glory returns.
. Rev 21:7 He that overcometh shall inherit all things; and I will be his God, and he shall be my son.
We are given the “right” to become sons of God, that’s the birth”right” Joh 1:12 But as many as received him, to them gave he power (the right) to become the sons of God, even to them that believe on his name:
Those that overcome, do become sons of God. They share the birthright. They have the “right” to eat from the tree of life Rev 22:14 Blessed are they that do his commandments, that they may have right to the tree of life, and may enter in through the gates into the city.
Ex 21:27 is talking about Jerusalem being overturned and the usurping of the birthright. He who’s right it is is the manifest sons of God, when Christ returns in his body of overcomers.
Study Notes The Sceptre and the Birthright