New York Times’ 5-year fight with patent troll may cost millions