Epic provoked the tech giant by deliberately violating rules, installing its own payment system, and protesting the 30 percent cut Apple and Google’s app stores take for all purchases.