Major stock indexes ended mostly higher after volatile trading Wednesday, as big banks' results continued to impress.