Canada's Supreme Court has upheld a Quebec regulation banning the sale of margarine coloured yellow.