The funeral of Iran's Supreme Leader Ayatollah Khamenei revealed political tensions, with hardliners confronting officials over diplomatic approaches towards the US.