Cristiano Ronaldo scored in the second half and gave Portugal a 2-1 lead over Germany in the semifinals of the UEFA Nations League.