The main border crossing between Jordan and Iraq is to reopen on Wednesday for the first time since 2015, a statement from both governments said.