Apple has suffered a significant legal setback in the EU after a court dismissed the company's challenges to its designation under the DMA.