God would be unrighteous (just as we would) if He valued anything more than what is supremely valuable. But He Himself is supremely valuable. If He did not take infinite delight in the worth of His own glory He would be unrighteous. For it is right to take delight in a person in proportion to the excellence of that person’s glory.
John Piper