Canada's parliament has voted in favour of legislation to limit trans fats in food products.