The Trump administration had sought to limit anti-terrorism funding for local governments that didn’t check the citizenship status of voters.