The ruling allows states to force retailers without physical storefronts in the state to collect sales tax, which could mean higher prices at checkout online.