The US House of Representatives has voted to approve a bill that seeks to block lawsuits that try to hold the food industry responsible for obesity.