Cristiano Ronaldo equalled the record for goals scored in World Cup qualifiers with his penalty in Portugal's 3-2 win over Hungary.