AUSTIN (KXAN) — A bill that would create a criminal offense for the unlawful restraint of a dog passed in the Texas Senate Monday night on a 28-3 vote. Shortly after midnight, Texas House members passed the legislation with a 91-19 vote, before wrapping up work on the third special session.

Senate Bill 5, also known as the Safe Outdoor Dogs Act, will now head to the governor’s desk for approval.

Gov. Greg Abbott vetoed the legislation earlier this year during the regular session, prompting many animal lovers to voice their disappointment on social media using the hashtag #AbbottHatesDogs. At the time, Abbott said the state already outlaws animal cruelty, and “Texas is no place for this kind of micro-managing and over-criminalization.”

The bill would require owners to provide adequate shelter, among other things, when leaving a dog outside and unattended on a restraint or tether. That tether or rope has to be an appropriate length as well.