Treaties are pieces of paper. They get ignored all the time.
When Obama wanted to take credit for leaving Iraq, he did so. He actually campaigned on it. When the political winds shifted and he wanted to distance himself from leaving Iraq early, he said it was already arranged by Bush before him.
It’s all political fudging.