Plans to impose a new tax on tech giants risk US retaliation and could hurt trade relations.