Netanyahu moves closer to power after pact with ultranationalist