Tech giants win changes to news media code