Apple Inc. lambasted the EU’s Digital Markets Act after the first known porn app for the iPhone arrived on the company’s devices in the region.