EU negotiators agree new rules on vital medicines