US regulator chief to resign amid widespread hostile conduct, discrimination in agency