Facebook’s parent company says it will pull news from the platform in the US if a new media law passes.