World Cup holders Argentina have qualified for next year's tournament after a historic 4-1 home win over rivals Brazil.