Your friend will be totally fine, he even has the legal document for the separation, start from that day, all the money he earned belong to himself, by law he is allowed to stay with anybody else.
So don't worry,get a lawyer, apply for divorce, and congratulation for getting rid of that *****.