Peter Dutton defended the policy, saying “it doesn’t discriminate on the basis of gender” because it applied to all public servants.