How Apple Created a Legal Mess When It Skirted a Judge’s Ruling