Some foreign nationals face up to 30 years in visa limbo under Shabana Mahmood’s changes to settlement