Meta plans to end access to news on Facebook and Instagram in Canada in response to legislation that would require internet giants to pay news publishers.