Production of legume seed plants for restoring soil fertility