Judges 11 1) The Spirit of the Lord had already come upon Jephthah before he made his vow; showing that God was already intending to give him victory. (v29) 2) Jephthah rashly made a vow to God of his own accord, which was never affirmed by God nor required by God. (v30-31)
Even on a surface level reading of the passage, it would be difficult to defend that it was ever God's desire that Jephthah sacrifice his daughter. And, if he knew the character of God as proclaimed by God himself in Exodus 34:6-7, he could have repented and received grace and he still would have had his daughter.