The United States has reopened its embassy in the Saudi capital , Riyadh , but its consulate in Jeddah remains closed , two days after it was stormed by militants linked to al-Qaida .