Texas passes animal cruelty law