The federal government has drawn criticism for its approach to including questions of gender and sexuality in the 2026 census.