Gary was trying to stop manipulate a rocket launch in order to stop the weapons race and nuclear war tensions. Kirk and Spock want to stop him because for whatever reason Gary didn’t want to tell anyone what he was doing. The lady in pink and orange is also trying to stop Gary, except when she’s trying to stop Kirk and Spock. Also, somewhere along the lines Spock wanted to change hats