The no-confidence motion is defeated by voice vote in the state assembly shortly after 1 am after a 13-hour debate