As after-school programs have fallen victim to budget cuts at many schools, one program to build science and math skills has found an unusual home — the New York City Housing Authority.