If you want data returned by your Lambda function in the first step of your Step Functions Workflow to be available in the 4th step of your workflow, you need to use ResultPath.
By default, the output of your 1st state will be the response from the Lambda invoke call. This will be passed into the second Glue StartJobRun
state and the output of that state will be the response from that API call to Glue. In this case, the response from your 1st step will not be available in subsequent steps.
If you want to keep some of that state data, you use ResultPath in your 2nd step to place the response from the Glue call into a different node in your output and combine it with the Input to the state. You then keep doing this in subsequent steps to persist important data through the remainder of your workflow.