Meta has said it will begin to restrict news on its platforms to Canadian consumers after parliament passed a controversial online news bill.