While I agree, the counterargument will likely be that all of Apple's lawyers are on salary and as such Apple's legal costs would be no different with or without the court proceedings.
Businesses don't often pay employees to do nothing, that legal team would be doing other corporate legal work if they weren't working on this case, and I'm sure they paid outside consultants to help with the case.
We'll never see that counterargument regarding the cost of engineering FBiOS, since the case was withdrawn.
[Edit: we'll never see it because I believe that the FBI will not likely go after Apple again, specifically because they put up a much more forceful fight against it than the FBI ever thought they would. Admittedly I'm speculating, but I don't think I'm being unreasonable]