U.S. District Judge Lucy H. Koh found that the agreement between HTC and Apple, while it had settled similar disputes over the same patents, didn’t go far enough to calculate the value of the license to Apple, according to Thursday’s ruling.