The OT is literally filled with foreshadowing of Jesus Christ. I believe God was pleased with Judah's repentance.
To you it is, because you have the NT to compare it to. But place yourself in the era just before Jesus appeared. It wouldn't appear like foreshadowing to them because they had no NT to compare it TO. Do you understand?