An intense struggle has unfolded in Washington between companies and officials over where to draw the line on selling technology to China.