Beijing is criticizing a congressional hearing convened to assess the threat from China’s ruling Communist Party.