A U.S. judge ruled Wednesday that Apple conspired to raise e-book prices, handing the tech giant a bruising loss that could ripple throughout the industry and force companies to rethink how they meet consumer demand for digital products.