A Canadian entrepreneur was sentenced to 11 years in prison Wednesday in a spying case linked to Beijing’s effort to push his country to release an executive of tech giant Huawei.