Democrat Sarah McBride has been elected to the US House of Representatives and will become the first openly transgender person to serve in Congress.