The House of Representatives passed legislation Friday that would allow victims of the 9/11 attacks and their relatives to sue foreign governments suspected of backing acts of terrorism against the United States.