Iran agrees to nuclear oversight as US eases oil rules