U.S. Stocks Gain as Banks Get New Capital Rules