Apple Inc. colluded with five major U.S. publishers to drive up the prices of e-books, a federal judge ruled Wednesday in a stern rebuke that threatens to limit the technology company's options when negotiating future content deals.

The ruling—which follows Apple's high-stakes gamble to go to trial even though the publishers settled similar charges—exposes the tech company to as-yet undetermined damages and opens the door for the...