Tech giants like Facebook, Google and Amazon, which have helped connect small business with millions of customers, have come under fire by some local entrepreneurs, state prosecutors and federal lawmakers who say the online companies could be creating unfair monopolies and punishing those who don’t play by their rules.