BC’s tax on foreign buyers has legal basis