The agreement displaced a bill that would have required Google and Meta to pay into a fund for journalism that is shared on their platforms.