Oil climbed, erasing earlier losses, after President Donald Trump said that the US doesn’t need a deal with Iran, leaving the conflict that has roiled Middle East supplies unresolved.