Regardless of the outcome of this legal scuffle, this is an embarrassing episode for JPMorgan and its CEO, Jamie Dimon.