In TOS, the contracts with the writers allowed them to keep control over whatever they introduce. But if those creations were used again in TOS itself for whatever reason then they became property of the show. When TOS went off the air those creations remained the property of the writer, meaning even if the TOS movies or TNG used them they'd have to pay the creators' or their estates the money to do so since the original program wasn't on anymore.