US president ceded American influence over large part of the Middle East to rivals, plunging region into uncertainty