France has passed a new law to tax tech companies after the US announced its investigation into the proposal.