Home Secretary Shabana Mahmood is to announce tighter regulations for migrants seeking to remain in the UK indefinitely.