Although the geography of this movie is loose, the Enterprise
was definitely not in Federation space. The starship was in the Neutral Zone or in Klingon space, depending on which source one puts greater credibility into.
I am inclined to believe that having his ship breakdown forced Kirk's hand. He couldn't complete the mission as planned.