Another interpretation (of Ecclesiastes 3:16): "The place of justice—there [was] wickedness." This is the central gate in which the Great Sanhedrin sat: "there [was] wickedness." (Lamentations 2:9:) "Her gates have sunk into the ground." The Holy One, blessed be He, said (Ecclesiastes 3:16): "The place of justice—there [was] wickedness" (rasha). There was one place for the Righteous One of the world—the Holy Temple, which was set apart for the Shekhinah—and Manasseh did wickedly (hirshia) and brought an image into its midst.
How Manasseh Brought an Idol Into the Holy Temple
Midrash Tanchuma Buber, Vayikra 9:1
ד"א מקום המשפט שמה הרשע. זה שער האמצעי שסנהדרי גדולה יושבין בו שמה הרשע, טבעו בארץ שעריה (איכה ב ט), אמר הקב"ה מקום הצדק שמה הרשע, מקום אחד היה לצדיקו של עולם בית המקדש המיוחד לשכינה, והרשיעו מנשה והכניס צלם בתוכו.