The US House of Representatives has voted to punish a Republican lawmaker over incendiary remarks she made by expelling her from two committees.