A watchdog analysis alleged that the teachers union chief had used members’ dues to fund a ghostwriter and other costs for her book