Court order rules that Pentagon acted illegally, punishing AI company for criticism of government.