Japanese shares held onto gains after Donald Trump signaled he would postpone planned attacks on Iranian energy infrastructure, easing some concerns about the conflict.