In a case marking the first time Saudi Arabia has been accused of spying in the United States, a former Twitter employee has been convicted of failing to register as an agent for the kingdom.