Portugal won the battle of the sides at the bottom of Group D to put themselves in the hunt to qualify while all but ending Scotland’s tournament