The Pentagon, in response to a lawsuit, will end a Bush administration legal battle and release “hundreds” of photos showing abuse or alleged abuse of detainees in Iraq and Afghanistan by U.S. personnel, according to defense officials and civil liberties advocates.