Dow, S&P close at records in 4th straight week of gains