A federal judge allowed the Pentagon to fire three Stars and Stripes journalists who had sued the government claiming a First Amendment violation.