The yen held onto gains after the Bank of Japan kept its benchmark rate unchanged amid an escalating war in Iran.