The bill, which could face legal battles, says at least half of political candidates must be women, but candidates are expected to declare their own genders.