The prime minister says it was not easy to persuade the Iranian president to let Malaysian ships pass through the Strait of Hormuz.