Green frontbencher at centre of trans rights row to run for