The flag-draped casket of Ayatollah Ali Khamenei was put on display in Tehran with millions expected to attend his dayslong funeral.