To save Eren's life, Erwin needed to prove to the Generalissimo that Levi could control Eren so that Eren would be placed in Levi's custody instead of being executed by the military police. It's exactly the same plan Levi and Erwin had during the trial in the manga.
Shingeki no Kyojin dj - L->E<-L