President Joe Biden on Friday wrote to the leaders of Egypt and Qatar, calling on them to press Hamas for a hostage deal with Israel, according to a senior administration official, one day after Biden called on Israeli Prime Minister Benjamin Netanyahu to redouble efforts to reach a cease-fire in the six-month-old war in Gaza.