The limit of one space yard per planet is hard coded and not moddable, but it's not checked when upgrading facilities. If a non space yard facility upgrades to a space yard facility, any number of space yards can be built by first building the base facility and then upgrading it.