U.S. court tosses murder conviction of Blackwater guard Nicholas Slatten in massacre of 14 unarmed Iraqi civilians

I’m wondering why this trial was in the US instead of Iraq, wouldn’t they have jurisdiction here? I understand the political reasons for the trial being here, just wondering what the legal rationale was.