She can only get a green card through her husband who filed the K-1 for her.
It would be fraud for her to get a green card at this point as she no longer has a bona fide marriage.
She needs to get a divorce.
She needs to return home.
You need to file for a K-1 fiancée visa.
There is no way for her to become legal by staying and marrying you. She can only become legal through her K-1 petitioner husband.