The Trump administration’s attempt to halt federal funding caused panic among homeless service providers and nonprofits.