Senior Pentagon officials yesterday defended the military’s anthrax vaccine as “safe and effective” but said they were discontinuing a program of mandatory anthrax inoculations for troops in high-threat areas until the program’s legal status is clarified.