I have had everything apart now twice. There is not a spring. The gate swings freely, but is opened by the electromagnet.
The problem is that the entire gate twists counterclockwise, then the swinging gate hits the metal ball guide on the right of the right loop and will not fully open. The twist opens up a spot on the left of the gate for the ball to sit (see photos above).
I twisted it back into position and tightened the screws. This held it into position for a few plays, until the force of the ball caused the gate to twist again.
I took everything apart a second time, and this time tightened down the screws with more force. To my surprise, the gate is now too low and the pinball cannot pass underneath.
The gate is held on two screws connected to t-nuts. The spacers are plastic.
The gate does not appear to be damaged in any way.
What I need is a way to anchor the gate on the other side to keep it from twisting, or add a third screw with the other two.
I am surprised that more Stern Star Trek owners don't have this issue. Or they do and just shake the game.