Change to immigration rules comes as government tries to fend off growing threat posed by Reform UK