Oxford Literary Festival has announced an author who supports trans rights will speak at the festival amid backlash on other "gender-critical" speakers.