Stock market today: Dow closes above 40,000 for the first time as latest inflation data fuels big weekly gains