Earnest said Monday that the White House has had “significant” concerns with the bill because it could open up the U.S. to being continually sued by people in other countries.

“The way that this bill is currently written exposes the United States, U.S. diplomats, U.S. servicemembers and, in some situations, even U.S. companies to significant risk in courts all across the world,” Earnest said. “The president believes that it’s important to look out for our country, to look out for our servicemembers, to look out for these diplomats and allowing this bill to come into law would increase the risk that it would face.”

The bill’s passage came before the 15th anniversary Sunday of the 2001 attacks that killed thousands in New York, Washington, D.C. and Pennsylvania.

Even after Obama vetoes the bill, it’s possible Congress might have the votes to override his veto.