Canada’s Senate passed a 3% digital services tax that would target the revenue of large technology companies, following through on a plan that has drawn criticism from the U.S. and groups representing American tech giants.