Analysis: Khamenei warily accepts US deal as Tehran eyes rebuilding Hezbollah