A union that represents many of The New York Times’ journalists sided with writers who signed a petition critical of the paper’s coverage of trans people. That sparked a backlash in the newsroom.