Senior White House aides suggested that the president has been consumed by the Israel-Hamas war in recent weeks as he focuses on releasing the hostages.