Well it could have been worst cost wise. SM-3 Block IB are 12k each, Block IIA are 37k ea.
I seriously doubt those numbers. Maybe that much to repaint and change the markings but not that. Do you have a link for that?
https://www.navalnews.com/naval-news/2022/06/raytheon-missiles-defense-gets-867-million-contract-for-sm-3-block-iia/