Tech firms face new rules as EU countries, lawmakers clinch fair market deal