The city will hire 5,000 new NYPD officers by 2029, raising the uniformed headcount to 40,000, the highest level in 20 years.