J.P. Morgan has been accused in a lawsuit of discriminating against a bisexual former employee.