New York City will spend $650 million over the next five years to combat homelessness and mental illness, while increasing the number of police officers in the subway system.