President Obama told CNN's Jake Tapper at a Town Hall that members of Congress voted against his veto of a bill that would allow the families of 9/11 victims did so based on political motivations.
The Justice Against Sponsors of Terrorism Act, or JASTA, would allow the families of 9/11 victims to bring lawsuits against countries they believed harbored individuals responsible for the planning and perpetration of the attacks.
Obama vetoed the bill due to concerns that passing it would spark similar lawsuits in other countries against the U.S.
WATCH: Obama talks about Congress overriding his veto of JASTA.
"If you're perceived as voting against 9/11 families right before an election, not surprisingly, that's a hard vote for people to take. But it would have been the right thing to do ... And it was, you know, basically a political vote," Obama said.
The override was the first of the of Obama's presidency and was supported overwhelmingly by lawmakers on both sides of the aisle.
The Senate voted to override the bill 97-1, with Minority Leader Harry Reid the lone dissenter.
Just a few hours later, the House voted 348-77 top override the veto.
The overruling of Obamas veto is ridiculous and a huge mistake. This just opens the door other countries to sue the US as well.— Michaelney Spears (@Alittlehazayy) September 28, 2016
The override sparked a lot of debate about the bill online.