WASHINGTON -- The Pentagon can resume giving anthrax vaccinations, but only to troops who volunteer for them, said a federal judge who had banned the shots amid safety questions.