US President Donald Trump signed an executive order to ban transgender women from competing in women's sports, directing authorities to withdraw funding from schools that fail to comply with the order.