A federal appeals court on Friday revived a law passed by Congress in 2010 to criminalize the creation and sale of so-called “animal crush” videos.

A panel of the U.S. Court of Appeals for the Fifth Circuit found that the law, used to prosecute two Texans for their part in the production of such a video, passed constitutional muster and was a valid way to discourage illegal instances of animal cruelty.