US President Donald Trump sidelined Oman as a mediator for a deal with Iran, despite its longstanding neutral role.