State agencies sued for violating climate law