Wall Street rebounded after three losses, buoyed by easing inflation concerns despite tariffs and shutdown fears.