A Canadian entrepreneur was sentenced to 11 years in prison Wednesday in a spy case linked to Beijing’s effort to push his country to release an executive of tech giant Huawei, prompting an unusual joint show of support for Canada by the United States, Japan and 23 other governments.