In a reversal of policy, the Pentagon will allow the press to photograph the flag-draped coffins of America’s war dead.