Goldman Sachs Group Inc.’s stock reversed course and rose Wednesday after the bank signaled better times ahead for deal making, despite second-quarter earnings that fell short of Wall Street’s lowered ...