NEW YORK—The cluster of luxury apartment buildings and office towers rising in a development west of midtown called Hudson Yards seems a world apart from the low-income housing projects of upper Manhattan.

But for purposes of an immigration program that helps finance Hudson Yards, it and Harlem’s Manhattanville public-housing towers are in the same district: a stringy one connected by three Census tracts that run along the Hudson River.

Merging,...