Flamengo become the first Brazilian team to lift the Copa Libertadores four times with a 1-0 victory over rivals Palmeiras at the Estadio Monumental U Marathon in Peru.