A federal judge in Manhattan ruled yesterday that the Defense Department must release dozens of withheld photographs and videotapes that show abuse of prisoners at Abu Ghraib prison in Iraq , rejecting an argument by top military officials that publishing the images would endanger American troops . ''