In the Devadatta chapter we learn that this person who caused the Buddha so much grief in the Buddha’s current lifetime was actually responsible for the Buddha being able to become the Buddha. In a previous lifetime Sakyamuni was a king who gave up his kingdom to his prince and sought the Dharma, going about the land beating a drum, seeking someone who could teach him. He came across a great seer who said that he would teach the Great Vehicle of the Sutra of the Lotus Flower on the condition the king would serve him without becoming disobedient.
With great joy the king began serving this seer. He performed all sorts of menial tasks but never begrudged his efforts because he was that sincere in seeking out the Great Dharma. We learn that not only was the king a previous life of the Buddha but the seer was Devadatta in one of his previous lifetimes. Because of this deep connection the Buddha was able to attain enlightenment and become the Buddha we know of today.
This is a wonderful example of how even the most evil person is at the same time not all bad, and also how we too may have a deep karmic connection with that person.
Lecture on the Lotus Sutra