The agreement ends a years-long investigation related to alleged failures to disclose issues during the tenure of former CEO Jeff Immelt.