Pentagon revises media access policy after court ruling