Xinhua/Wang Ying/Getty ImagesStocks slipped in the final trading session of 2024.Still, the S&P 500 gained over 20% for the second year in a row.Other markets also notched records in a blockbuster year. US stocks dipped in the final trading session of 2024, but weakness in the waning days of the year did little to dent the market's massive annual gain.