After spending years fighting Amazon.com Inc. to force it to collect sales taxes, U.S. states are turning their attention to the individuals and small companies that account for a growing share of the online marketplace’s sales.