Facebook and Google threatened for months to pull core services from Australia if the media laws took effect