When the servers starts up try and execute /kill @e[type=villager], if the server is strong enough it will kill all the villagers hopefully buying you a chance to get rid of the thing spawning them. There is likely better ways to go about this, but this is what happened to come to my mind. Resetting your world may also resolve the issue if you are willing to make that sacrifice.