President Trump said in a social media post that it is “not fair” that a transgender athlete was allowed to compete against women in California.