Nearly two dozen Democratic states filed after the administration issued a memo purporting to halt all federals grants and loans.