Ismail Haniyeh’s visits north African nation after its king agreed to resume diplomatic relations with Israel; he is set to meet with Islamic parties in governing coalition comes as well as opposition that seeks to gain electoral favor ahead of September vote