President Donald J. Trump will introduce a law recognizing only male and female genders.