Cristiano Ronaldo scored the winning goal in Portugal’s 2-1 victory over Scotland in the Nations League.