Parliament swears in government led by Benjamin Netanyahu and former rival, ending months of political uncertainty.