A man who was part of a “professional cannabis growing operation” in the heart of a York housing estate has been jailed and faces deportation.