Spain's PM Sanchez to remain in office