NJ agrees to ban Tesla's direct sales