The S&P 500 ended 2025 with four consecutive daily losses but still finished the year strong with an annual gain of 16.4%.