Ukraine has paid contractors hundreds of millions of dollars for weapons that have not been delivered, and some of the much-publicized arms donated by its allies have been so decrepit that they were deemed fit only to be cannibalized for spare parts.