The universe being the symbol of a kingdom or polity, the obstruction of the sun denotes the diminution or obstruction of the glory of its sovereign, and its potentates symbolized by the moon and stars, Gen. 37:9-10.
[For a more in-depth study on biblical symbolism see eschatology “Study Series 5b Hebraic Language Symbolism”]