The e-commerce giant has obtained pharmaceutical distribution licenses in 12 US states.