This is a common theme of the Vimalakirti Sutra, it is present right at the beginning where Vimalakirti's actions are described.
Here's another translation of the same section:
"He manifests acting out of lust but forsakes both internal and external and does not begrudge his own life; manifests the practicing of moral infractions but peacefully resides in the pure precepts, even unto harboring great fear about even minor transgressions; manifests acting out of anger but is always sympathetically forbearant; manifests acting out of laziness, yet vigorously cultivates merit; manifests acting out of a disturbed mind, yet is always mindfully concentrated; manifests acting out of stupidity, yet penetrates both mundane and supramundane wisdom." (tr McRae, BDK Edition, p 133)
See also Lankavatara Sutra 2.58, and further discussion with other references:
Training of Beginner Bodhisattvas.
The point is, no matter what happens, don't take it to be anything but empty. This is not the case of "
licensed evil" (as they call it in Japanese Pure Land), but freedom from all dharmas and the complete use of skilful means.
Actually, karma cannot be removed, actions of infinite births affect our every moment. Either we realise that experiences themselves are empty, or we remain dissatisfied no matter what happens.