Over the next 20 years, New Haven officials would spend $1.6 billion to renovate or replace nearly all of its 46 schools, an investment that could offer dramatic lessons for Boston as it embarks on its most expansive school construction program in four decades.