EU countries agree 2030 climate goals before battle with lawmakers