A court in Canada has given Empire's proposed takeover of local retailer Sobeys the green light.