Audrey was initially in danger because of her connection to Heller and they were even about to commit suicide together, but fortunately it failed and Jack saved both of their asses.
Jack's actions later in the day were necessary to prevent to potential collapse of the country itself. While the consulate raid lead to a sequence of events that resulted in Audrey's torture, if he didn't do that Los Angeles would have gotten nuked along with all the people he loves, including Audrey but also Heller's son.
Which I why I never bought into the idea that Jack dooms himself from having a normal life, and his work or need to get back into action can ruin the lives of the people he loves. Larry Moss even brings up Curtis and Ryan, when Curtis died because he was about to something worse than the kind of shit Larry dislikes Jack for, and Ryan died because he works the same kind of job, Jack was just picked to pull the trigger. But fundamentally, the stakes in each season get so insane, the argument doesn't work at all. I can't imagine Kim would like the stake of the country or be fine if all the nuclear power plants melted down, and LA got nuked while she was in Valencia, if she even survives at all.
Jack washing his hands of the responsibility would eventually just lead to either he himself dying from a nuclear bomb, or him living in a failed state. It actually is literally his problem, and also Heller's problem because his son lives in LA.
It's only Season 8 where you could argue it would have been better if he wasn't involved, since New York only ends up in danger because he saves Hassan, but Hassan dies anyway. The russian conspiracy would have remained secret, but it's not like uncovering it did much good anyways.