A bill to prohibit transgender women and girls from participating in women's and girls' school athletics was approved by the Republican-controlled US House of Representatives.