The U.S. Supreme Court will hear Apple's appeal of a contempt ruling in its long-running legal battle with Epic Games.