The outgoing US president called on others to ‘affirm’ the amendment, which bars discrimination on the basis of sex.