Spain's PM Pedro Sanchez to remain in office