The US Senate has passed legislation that will subject online shopping to state sales taxes.