US stocks tallied a second week of gains, with the S&P 500 Index powering through its longest winning streak in more than 20 years and wiping out all losses from April’s tariff turbulence as strong jobs data and progress on international trade talks unleashed a wave of buying.