NEW YORK — Sentencing three men to prison for 20 years, a judge urged New York City officials to make substantial reforms Monday to prevent the kind of historic fraud over its project to modernize its payroll systems.