Attorneys general in 20 states, most led by Democrats, had sued the administration. Similar suits have been filed over funding for other programs.