Idaho lawmaker accused of rape resigns after ethics ruling