WASHINGTON (Reuters) - U.S. President Barack Obama intends to veto by Friday evening legislation allowing survivors and families of victims of the Sept. 11 attacks to sue Saudi Arabia, the White House said.

White House spokesman Josh Earnest told reporters the president will veto Justice Against Sponsors of Terrorism Act within the constitutionally mandated 10-day window, which ends Friday evening.

The Obama administration opposed the bill on grounds that other countries could use the law as an excuse to sue U.S. diplomats, service members or companies.

(Reporting by Roberta Rampton and David Alexander; Writing by Doina Chiacu; Editing by David Gregorio)