Stock market today: Dow closes above 40,000, paces weekly gains as stocks rebound from tech sell-off