Ten-man Botafogo made history as it won the Copa Libertadores for the first time with a 3-1 victory over Atletico Mineiro in Buenos Aires.