It's bad to frame someone for something.
John has made a costly mistake at work that will have strong repercussions.
John wants to resolve the issue.
John owns up to his bosses about the mistake and presents possible solutions.
John knows that a co-worker has a reputation for making mistakes, so he makes it seem as though that co-worker was responsible.
John's bosses give him an opportunity to right the wrong, and he is luckily able to do so.
The co-worker is fired and John's health deteriorates as he is racked with guilt.