Germany agrees amended energy law to boost renewables