Dem attorneys general prepare for legal battle with Trump after filing hundreds of challenges last term