Shares of 3M helped push the Dow to a 654-point gain as investors continued to spread their bets beyond tech giants.