The head of the Polish government’s anti-corruption bureau resigned under pressure Thursday after officials leading the country’s commission investigating wide-scale spyware abuse criticized her for allegedly withholding information.