WASHINGTON—A federal appeals court on Tuesday ruled a government trade body can’t prohibit foreign digital transmissions into the U.S., a victory for open-Internet advocates and a blow for copyright holders seeking to battle online piracy.

The closely watched case examined how far the U.S. International Trade Commission could go to protect domestic industries from imports that infringe U.S. intellectual property.

Traditionally...