Malaysia lawmakers oust house speaker by slim majority