Animal cruelty bill barely clears House hurdle, heads to governor