Aid projects were designed to help Central Americans withstand extreme weather at home. Their end could undercut Trump’s goal of reducing migration.