Legislation aimed at transgender people is an election strategy, journalist