States have sued the federal government to force the release of aid during the shutdown, with a key hearing set for Thursday.