Spain’s political divisions have widened after the country’s top prosecutor was convicted of leaking confidential information against the conservative opposition.