Hi Terrie, it is extremely sad and absolutely unbelievable for me to read that someone can behave like this to his wife and I would say it is TOTALLY UNACCEPTABLE.
It is very nice to read that she has support in you and that she's coming to live with you through this hard period of her life.
You friend doesn't need to worry about her ILR as there are definitely ways how to get it sorted.
The same is about he threats from her husband that he will get her deported etc - it is quite the opposite - if he will try he might get into serious trouble himself.
Please see following link to UKBA pages - I'm sure you can get some advice from there and some comfort for your friend:
UKBA - domestic violence
Nothing is lost, wish your friend good luck and nerves of steel![]()