Apple ordered by court to produce agreement with HTC