If someone is told they must leave the country, they can go to immigration court. There, they can explain their situation and show why they should be allowed to stay. A judge will listen and decide the case. https://www.thebulldog.law/immigration-law