A Scottish MP faced the British Prime Minister about ending freedom of movement in the UK after Brexit