J.P. Morgan Chase & CO.’s chief Jamie Dimon defended the banking sector and the big bank’s risk management team, responding to a much-anticipated and sometimes heated interrogation from lawmakers over a $2 billion-plus derivatives trading loss at the financial institution’s U.K. trading unit.