Lawyers say the guidelines are "legally flawed" but equality watchdog denies it breached rights of transgender people.