New Mexico judge agrees charges should be dropped after lawyers said state ‘buried’ evidence about live ammunition