President Joe Biden has spent much of the last year trying — and often failing — to contain the spiraling violence in the Middle East. As his term draws to a close, the devastation in Gaza and the new uncertainty in Syria mask some geopolitical gains for Washington — even if Biden’s team wasn’t directly responsible for them.