EU lawmakers endorsed on Tuesday a preliminary deal on rewriting the bloc's two-decade old copyright rules, which will force Google to pay publishers and artists for using their work online.