A federal judge has found the Iranian government partly responsible for a 1996 terrorist attack in Saudi Arabia that killed 19 Americans.