If they break the law to get a green card, they are still illegal.
Yes, I thought that you were asking if our government gave them a green card. I think they have to go through their hearing first.