The deal permits American companies to spend billions for an algorithm ultimately controlled by the CCP. How did we get here?