In the state of Texas, If a predatory animal is attacking your livestock it is legal to remove the threat by any means possible.
I believe federal law applies in this case. So like smoking weed in Colorado or Washington state is legal (with age, etc. limits), the feds can still arrest and prosecute you.