The government has formally signed an agreement to buy 66 of the latest model F-16 jets built by Lockheed Martin Corp.