I'm not finding a reference to support my memory, but isn't it standard practice for the military to pay for the development of planes like the YF-23 and YF-32? My recollection is they take delivery of the prototypes and pay for the program even while canceling it.
Often. If it has an official designator, money was spent by the government. If it doesn't, it wasn't. The Boeing Bird of Prey cost Boeing $67m of which the Air Force spent nothing. Have Blue was entirely on Lockheed's dime while Tacit Blue came out of Northrop's wallet. That money may not cover all the costs, however. With the ATF competition (which selected the F-22), the USAF paid Northrop/McD and Lockheed a development budget, but not an airframe budget. When it came time to put up an RFP for the airframes, payment was conditional on acceptance. In other words, the USAF paid for the paper YF-23 but Boeing/Northrop/McD paid for the flyers.