Uruguay claimed a historic World Cup qualifying win over Brazil after Darwin Núñez stepped up for the hosts.