Staying within pollution limits is the goal of the purchase, which comes amid criticism of the dilapidated state of city sanitation yards and equipment.