Obama urged Egypt to uphold its commitments to defend US diplomatic facilities and personnel and called on Libya to work with US authorities to bring those behind the deadly attack on the US consulate to justice.