The lawsuit claims the Trump administration is withholding hundreds of millions of dollars in disaster-preparedness and homeland security grants to pressure states to change policies on elections and immigration.