U.S. stocks gain for the second straight week