Once signed into law by Mayor Bill de Blasio, the legislation will establish a task force to examine the city’s “automated decision systems”—the computerized algorithms that guide the allocation of everything from police officers and firehouses to public housing and food stamps—with an eye toward making them fairer and more open to scrutiny.