1)
Did he come to Beis Hashem after he began to serve idolatry?
1.
Radak: This was after he was humbled (repented) and Yehudah with him - "v'Gam bi'Yhudah Hayah Devarim Tovim" (Divrei ha'Yamim II, 12:12).
2)
Why did the Ratzim take the shields when the king came?
1.
Rashi: This was for his honor. Afterwards, they returned them to their cells.
2.
Radak (27) #1: Perhaps he did so amidst fear of rebellion.
3.
Radak (27) #2: It was for grandeur and glory.
4.
Metzudas David: It was for protection lest the enemy come suddenly.