Supreme Leader Ayatollah Ali Khamenei has been laid to rest months after being killed in the opening salvos of the Iran war.