Muslim-majority state is first to join pact since start of Gaza war, despite existing diplomatic relations with Israel