Iran and European nations said they had reached a general understanding about next steps in limiting Tehran’s nuclear program, but officials said that some important issues need to be resolved.