Deal signed only a day before the swearing in of new government, with final disputes between ultra-Orthodox parties still being settled