This is a command. By commanding that vegetation should sprout on the earth, God made it sprout. AT: "Let vegetation sprout up on the earth" or "Let vegetation grow on the earth" (See: [[rc://en/ta/man/translate/figs-imperative]])
"vegetation, each plant that bears seed and each tree that bears fruit" or "vegetation. Let them be plants that produce seeds and fruit trees that produce fruit." Here "vegetation" is used here as a general term that includes all plants and trees.
"It happened like that" or "That is what happened." What God commanded happened just as he said it should. This phrase appears throughout the chapter and has the same meaning wherever it appears. See how you translated this in [Genesis 1:7](./06.md).