MONTREAL — An entrepreneur who sued the City of Montreal for not considering his bid to organize a 2017 electric car race has failed in his effort to obtain more than $3 million in compensation.