Josh Shapiro’s office agreed to pay $295K to settle a sèxual harassment allegation against a top