Shares of banks and other financial institutions rose amid deal activity.