Sexual harassment investigations force resignations of two state officials