JP Morgan has reached a $5.1 billion settlement with the US Federal Housing Finance Agency (FHFA) over charges it misled…