The path integral formulation of energetic causal set models of the universe