Rooted in colonialism, legislation backed by governments eager for popularity is obstructing real progress for queer minorities