By fighting the Cultist that spawns at the dungeon after defeating Golem, you can destroy the pillars and take on Moon Lord.