European Union negotiators agreed early on Thursday the text of a law designed to make governments and utilities improve energy efficiency and lower the bloc's fuel bills.