How Apple’s 30% App Store Cut Became a Boon and a Headache

App makers like the game company Epic and the music service Spotify are challenging Apple’s right to a large cut of their sales. Regulators have taken notice.