The beleaguered energy firm agreed to appoint four new directors, bowing to pressure from two if its largest shareholders, including Carl Icahn.