Malaysian Prime Minister Anwar Ibrahim is defending his ties with Hamas after meeting with the group’s leaders.