Obama confident next Egypt government will remain a U.S. partner